diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-03 17:26:58 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-03 17:26:58 +0100 |
commit | 919dfa525308d164675578b10e9ccd0ccdfee2fd (patch) | |
tree | 9f9a6261a2f1c0a8f6aebfb6d184560817765bb2 /lookup.py | |
parent | b397d6478c7c07d430c0a0b1bcf4d9f19faced4c (diff) | |
download | astroid-git-919dfa525308d164675578b10e9ccd0ccdfee2fd.tar.gz |
cleanup
--HG--
branch : _ast_compat
Diffstat (limited to 'lookup.py')
-rw-r--r-- | lookup.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -60,10 +60,6 @@ def scope_lookup(self, node, name, offset=0): stmts = node._filter_stmts(self.locals[name], self, offset) except KeyError: stmts = () - except: - print "scope_lookup Error" - print "%s(%s)" % (repr(self.__class__), repr(self.name)) - raise if stmts: return self, stmts if self.parent: @@ -174,6 +170,7 @@ def _filter_stmts(self, stmts, frame, offset): _stmts = [node] _stmt_parents = [stmt.parent] continue + # XXX comment various branches below!!! try: pindex = _stmt_parents.index(stmt.parent) except ValueError: |