mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480)
This commit is contained in:
parent
bcc4e46832
commit
cb414cf0e2
3 changed files with 23 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue