mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Fix a Python 2.x compatibility regression
This commit is contained in:
+2
-1
@@ -17,7 +17,8 @@ _Cancellable = _frida.Cancellable
|
||||
|
||||
def cancellable(f):
|
||||
@wraps(f)
|
||||
def wrapper(*args, cancellable=None, **kwargs):
|
||||
def wrapper(*args, **kwargs):
|
||||
cancellable = kwargs.pop('cancellable', None)
|
||||
if cancellable is not None:
|
||||
with cancellable:
|
||||
return f(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user