diff --git a/uncompyle6/scanners/scanner3.py b/uncompyle6/scanners/scanner3.py index d723a060..0cde31a1 100644 --- a/uncompyle6/scanners/scanner3.py +++ b/uncompyle6/scanners/scanner3.py @@ -628,9 +628,9 @@ class Scanner3(Scanner): ) correct_annotate_args = annotate_args - if opname == "MAKE_CLOSURE" and ((3, 4) <= self.version < (3, 6)) and annotate_args > 0: - # For some reason that I don't understand annotate_args is off by one - # here from what is documented in + if opname in ("MAKE_CLOSURE", "MAKE_FUNCTION") and ((3, 4) <= self.version < (3, 6)) and annotate_args > 0: + # For some reason that I don't understand, annotate_args is off by one + # when there is an EXENDED_ARG instruction from what is documented in # https://docs.python.org/3.4/library/dis.html#opcode-MAKE_CLOSURE # However in parsing rule, we have already adjusted for the one-fewer annotate arg correct_annotate_args -= 1 diff --git a/uncompyle6/version.py b/uncompyle6/version.py index e6a3e3c7..03e22cc7 100644 --- a/uncompyle6/version.py +++ b/uncompyle6/version.py @@ -14,4 +14,4 @@ # This file is suitable for sourcing inside POSIX shell as # well as importing into Python # fmt: off -__version__="3.9.0" # noqa +__version__="3.9.1.dev0" # noqa