sanitize.with_sigalrm_timeout: functools.wrap fix.

master
Snakes 2022-07-06 05:01:48 -04:00
parent 548030fcf1
commit b66bfdcab9
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ def with_sigalrm_timeout(timeout: int):
raise Exception("Timeout")
def inner(func):
@functools.wraps(inner)
@functools.wraps(func)
def wrapped(*args, **kwargs):
signal.signal(signal.SIGALRM, sig_handler)
signal.alarm(timeout)