diff options
author | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
commit | d16e81aabe5448a90640694d57cdaefddf3a1a9f (patch) | |
tree | 1d422ec1ee0944f60ceedd91f69af4034cb170e6 /Lib/compiler/symbols.py | |
parent | 801dd736531f7d6db57a1dab80fe6daa37e0a0b0 (diff) | |
download | cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.zip cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.gz cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.bz2 |
Fix the compiler package w.r.t. the new metaclass syntax.
(It is still broken w.r.t. the new nonlocal keyword.)
Remove a series of debug prints I accidentally left in test_ast.py.
Diffstat (limited to 'Lib/compiler/symbols.py')
-rw-r--r-- | Lib/compiler/symbols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/symbols.py b/Lib/compiler/symbols.py index 6c19b5b..e22294e 100644 --- a/Lib/compiler/symbols.py +++ b/Lib/compiler/symbols.py @@ -299,7 +299,7 @@ class SymbolVisitor: def visitClass(self, node, parent): parent.add_def(node.name) - for n in node.bases: + for n in node.args: self.visit(n, parent) scope = ClassScope(node.name, self.module) if parent.nested or isinstance(parent, FunctionScope): |