Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2to3: remove empty imports
  • Loading branch information
jef-n committed Mar 15, 2016
1 parent 6b99394 commit 4151a3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/qgis_fixes/fix_pyqt.py
Expand Up @@ -298,6 +298,7 @@
"QPoint",
"QPointF",
"QDirIterator",
"NULL",
]),
(None, [
"SIGNAL",
Expand Down Expand Up @@ -517,6 +518,8 @@ def handle_name(name, prefix):
node.replace(nodes)
elif missing:
self.cannot_convert(node, "All module elements are invalid")
else:
node.remove()

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

0 comments on commit 4151a3b

Please sign in to comment.