Skip to content

Commit 34a54cd

Browse files
committed
scope analyzer: fix recursion bug
1 parent 90a9cbd commit 34a54cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/syntax/scopeanalyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def collect_name_or_list(t):
249249
collect(t.id)
250250
elif type(t) in (Tuple, List):
251251
for x in t.elts:
252-
collect(x.id)
252+
collect_name_or_list(x)
253253
else:
254254
assert False, "Scope analyzer: unimplemented: collect names from type {}".format(type(t))
255255
# Useful article: http://excess.org/article/2014/04/bar-foo/

0 commit comments

Comments
 (0)