From 649825006296a37be5c17101d5510cb2fa3e803f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 31 Aug 2019 05:28:27 +0200 Subject: [PATCH] Drop support for cancellable as a positional argument Better to be explicit for the rare cases where a single operation needs a specific Cancellable. --- frida/core.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frida/core.py b/frida/core.py index 5941ef8..206d499 100644 --- a/frida/core.py +++ b/frida/core.py @@ -18,12 +18,6 @@ Cancellable = _frida.Cancellable def cancellable(f): @wraps(f) def wrapper(*args, cancellable=None, **kwargs): - if cancellable is None: - last_arg = args[-1] - if isinstance(last_arg, Cancellable): - cancellable = last_arg - args = args[:-1] - if cancellable is None: return f(*args, **kwargs)