projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d8b5a
)
minor code cleanup
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 22 Dec 2012 08:40:11 +0000
(09:40 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 22 Dec 2012 08:40:11 +0000
(09:40 +0100)
Cython/Compiler/Visitor.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Visitor.py
b/Cython/Compiler/Visitor.py
index
7150eda
..
7fe4489
100644
(file)
--- a/
Cython/Compiler/Visitor.py
+++ b/
Cython/Compiler/Visitor.py
@@
-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