summaryrefslogtreecommitdiff
path: root/rebuilder.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-09-22 15:05:42 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-09-22 15:05:42 +0200
commit724712612a36ecdb4461d7afbd71e8de166354a1 (patch)
treebd2ae56cb204000c977bba9f9ee65036a764978e /rebuilder.py
parent3c5c2f93718043da66788c0feed41438916de196 (diff)
downloadastroid-724712612a36ecdb4461d7afbd71e8de166354a1.tar.gz
py2.3 compat : syntax, set; _nodes_compiler.py : fix visit_discard
Diffstat (limited to 'rebuilder.py')
-rw-r--r--rebuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rebuilder.py b/rebuilder.py
index d902875..4bdbc6c 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -214,11 +214,11 @@ class RebuildVisitor(object):
for name in imported.wildcard_import_names():
node.parent.set_local(name, node)
if delayed:
- node.parent.scope().locals[name].sort(cmp=cmp_nodes)
+ node.parent.scope().locals[name].sort(cmp_nodes)
else:
node.parent.set_local(asname or name, node)
if delayed:
- node.parent.scope().locals[asname or name].sort(cmp=cmp_nodes)
+ node.parent.scope().locals[asname or name].sort(cmp_nodes)
def visit_function(self, node, parent):