summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-11-09 20:07:38 (GMT)
committerGitHub <noreply@github.com>2021-11-09 20:07:38 (GMT)
commitcb414cf0e207668300c4fe3f310c0bd249153273 (patch)
treef39a98f3ec3e7e7b8ebd3c27c9ed8cdbc88ae261 /Lib/dis.py
parentbcc4e46832010469bb35a97c1d1e962a82ee7fd9 (diff)
downloadcpython-cb414cf0e207668300c4fe3f310c0bd249153273.zip
cpython-cb414cf0e207668300c4fe3f310c0bd249153273.tar.gz
cpython-cb414cf0e207668300c4fe3f310c0bd249153273.tar.bz2
bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480)
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 5427564..8b429b5 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -523,6 +523,7 @@ def _unpack_opargs(code):
extended_arg = (arg << 8) if op == EXTENDED_ARG else 0
else:
arg = None
+ extended_arg = 0
yield (i, op, arg)
def findlabels(code):