summaryrefslogtreecommitdiff
path: root/lookup.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-03 17:26:58 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-03 17:26:58 +0100
commit919dfa525308d164675578b10e9ccd0ccdfee2fd (patch)
tree9f9a6261a2f1c0a8f6aebfb6d184560817765bb2 /lookup.py
parentb397d6478c7c07d430c0a0b1bcf4d9f19faced4c (diff)
downloadastroid-git-919dfa525308d164675578b10e9ccd0ccdfee2fd.tar.gz
cleanup
--HG-- branch : _ast_compat
Diffstat (limited to 'lookup.py')
-rw-r--r--lookup.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lookup.py b/lookup.py
index 8552fd92..4a0cf73c 100644
--- a/lookup.py
+++ b/lookup.py
@@ -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: