Skip to content

Commit c1429b0

Browse files
committed
pyassem: Initialize namespace vars.
Before iterating and changing namespace, to avoid "dictionary changed while iterating" error.
1 parent 35b3ecf commit c1429b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/pyassem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ def _convert_COMPARE_OP(self, arg):
496496

497497
# similarly for other opcodes...
498498

499+
name = obj = opname = None
499500
for name, obj in locals().items():
500501
if name[:9] == "_convert_":
501502
opname = name[9:]

0 commit comments

Comments
 (0)