From 870199d9e70605f725dafc9d87f83944b2df99cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 4 Sep 2019 01:54:06 +0200 Subject: [PATCH] Fix a Python 2.x compatibility regression --- frida/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frida/core.py b/frida/core.py index 8789536..7ecb2bf 100644 --- a/frida/core.py +++ b/frida/core.py @@ -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)