Skip to content

Commit

Permalink
revert the change for co_lnotab as it is not supported by python 3.9.…
Browse files Browse the repository at this point in the history
… Will change to if_else statement with lnotab to lineno
  • Loading branch information
achevrot committed Nov 15, 2024
1 parent a572c5c commit 4a988c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impunity/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 4a988c6

Please sign in to comment.