Skip to content

Commit 4151a3b

Browse files
committed
2to3: remove empty imports
1 parent 6b99394 commit 4151a3b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/qgis_fixes/fix_pyqt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@
298298
"QPoint",
299299
"QPointF",
300300
"QDirIterator",
301+
"NULL",
301302
]),
302303
(None, [
303304
"SIGNAL",
@@ -517,6 +518,8 @@ def handle_name(name, prefix):
517518
node.replace(nodes)
518519
elif missing:
519520
self.cannot_convert(node, "All module elements are invalid")
521+
else:
522+
node.remove()
520523

521524
def transform_dot(self, node, results):
522525
"""Transform for calls to module members in code."""

0 commit comments

Comments
 (0)