Remove pr.Name completely.

This commit is contained in:
Dave Halter
2014-09-26 16:18:10 +02:00
parent 4d7db35340
commit 522c9eda90
4 changed files with 9 additions and 77 deletions
+2 -8
View File
@@ -102,20 +102,14 @@ class NameFinder(object):
or isinstance(scope, compiled.CompiledObject) \
or isinstance(stmt, pr.ExprStmt) and stmt.is_global():
# Always reachable.
if isinstance(name, pr.Name):
names.append(name.names[-1])
else:
names.append(name)
names.append(name)
else:
check = flow_analysis.break_check(self._evaluator,
name_list_scope,
er.wrap(self._evaluator, scope),
self.scope)
if check is not flow_analysis.UNREACHABLE:
if isinstance(name, pr.Name):
names.append(name.names[-1])
else:
names.append(name)
names.append(name)
if check is flow_analysis.REACHABLE:
break