Skip to content

Commit e2e8386

Browse files
Update Lib/traceback.py
1 parent 50b0dbc commit e2e8386

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ def _compute_suggestion_error(exc_value, tb, wrong_name):
19661966
list(frame.f_locals)
19671967
+ list(frame.f_globals)
19681968
)
1969-
if not dis.opname[frame.f_code.co_code[frame.f_lasti]].startswith('DELETE_'):
1969+
if not dis.opname[frame.f_code.co_code[frame.f_lasti]].startswith(('STORE_', 'DELETE_')):
19701970
d += list(frame.f_builtins)
19711971
d = [x for x in d if isinstance(x, str)]
19721972
if not_normalized and wrong_name in d:

0 commit comments

Comments
 (0)