From 5968e960f7889482f6565e4c710960d9a1ecd487 Mon Sep 17 00:00:00 2001 From: Tabulate Date: Thu, 4 Feb 2021 19:48:05 -0500 Subject: [PATCH 1/2] Update goto.py --- goto.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/goto.py b/goto.py index f3a86a7..1787f2d 100644 --- a/goto.py +++ b/goto.py @@ -55,6 +55,11 @@ def _make_code(code, codestring): args.insert(1, code.co_kwonlyargcount) # PY3 except AttributeError: pass + + try: + args.insert(1, code.co_posonlyargcount) # PY3 + except AttributeError: + pass return types.CodeType(*args) From c2aae74d6306ef5d5a5c31b943a7577d5f1f5a04 Mon Sep 17 00:00:00 2001 From: Tabulate Date: Sat, 27 Feb 2021 18:01:10 -0500 Subject: [PATCH 2/2] remove whitespace from line 58 --- goto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.py b/goto.py index 1787f2d..53ab28d 100644 --- a/goto.py +++ b/goto.py @@ -55,7 +55,7 @@ def _make_code(code, codestring): args.insert(1, code.co_kwonlyargcount) # PY3 except AttributeError: pass - + try: args.insert(1, code.co_posonlyargcount) # PY3 except AttributeError: