diff --git a/goto.py b/goto.py index f3a86a7..53ab28d 100644 --- a/goto.py +++ b/goto.py @@ -56,6 +56,11 @@ def _make_code(code, codestring): except AttributeError: pass + try: + args.insert(1, code.co_posonlyargcount) # PY3 + except AttributeError: + pass + return types.CodeType(*args)