Skip to content

Commit bc94282

Browse files
author
Scott Sanderson
committed
BUG: Fix missing warning on py37.
Check LOAD_METHOD in addition to LOAD_ATTR AND STORE_ATTR.
1 parent 088ee14 commit bc94282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def accessed_attributes_of_local(f, local_name):
8181
# another name.
8282
for first, second in sliding_window(dis.get_instructions(f), 2):
8383
if first.opname == 'LOAD_FAST' and first.argval == local_name:
84-
if second.opname in ('LOAD_ATTR', 'STORE_ATTR'):
84+
if second.opname in ('LOAD_ATTR', 'LOAD_METHOD', 'STORE_ATTR'):
8585
used.add(second.argval)
8686
return used
8787

0 commit comments

Comments
 (0)