From 4a988c65764ec1c605903ff99087fcf2be6377ab Mon Sep 17 00:00:00 2001 From: achevrot Date: Fri, 15 Nov 2024 16:32:40 +0100 Subject: [PATCH] revert the change for co_lnotab as it is not supported by python 3.9. Will change to if_else statement with lnotab to lineno --- src/impunity/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impunity/wrapper.py b/src/impunity/wrapper.py index 8fb4311..eeaa5e2 100644 --- a/src/impunity/wrapper.py +++ b/src/impunity/wrapper.py @@ -203,7 +203,7 @@ def deco_f(fun: F) -> F: origin_method.__code__.co_filename, origin_method.__code__.co_name, origin_method.__code__.co_firstlineno, - new_method.__code__.co_lnotab, + co_lnotab, origin_method.__code__.co_freevars, origin_method.__code__.co_cellvars, )