Simplify decorators, make them easier to read in debugging mode.

This commit is contained in:
Dave Halter
2014-11-18 15:04:20 +01:00
parent 6d866eb915
commit 90ce1ac47f
2 changed files with 7 additions and 15 deletions
+1
View File
@@ -293,6 +293,7 @@ class NameFinder(object):
for name in names:
typ = name.get_definition()
print(name, typ)
if typ.isinstance(pr.ForStmt):
for_types = self._evaluator.eval_element(typ.children[-3])
for_types = iterable.get_iterator_types(for_types)