minor code cleanup
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 22 Dec 2012 08:40:11 +0000 (09:40 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 22 Dec 2012 08:40:11 +0000 (09:40 +0100)
Cython/Compiler/Visitor.py

index 7150eda..7fe4489 100644 (file)
@@ -234,7 +234,7 @@ class VisitorTransform(TreeVisitor):
     def visitchildren(self, parent, attrs=None):
         result = self._visitchildren(parent, attrs)
         for attr, newnode in result.iteritems():
-            if not type(newnode) is list:
+            if type(newnode) is not list:
                 setattr(parent, attr, newnode)
             else:
                 # Flatten the list one level and remove any None