mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
--- a/stem/control.py
|
|
+++ b/stem/control.py
|
|
@@ -474,7 +474,7 @@
|
|
|
|
def decorator(func):
|
|
def get_default(func, args, kwargs):
|
|
- arg_names = inspect.getargspec(func).args[1:] # drop 'self'
|
|
+ arg_names = inspect.getfullargspec(func).args[1:] # drop 'self'
|
|
default_position = arg_names.index('default') if 'default' in arg_names else None
|
|
|
|
if default_position is not None and default_position < len(args):
|
|
--- a/stem/prereq.py
|
|
+++ b/stem/prereq.py
|
|
@@ -241,7 +241,7 @@
|
|
|
|
# check for mock's new_callable argument for patch() which was introduced in version 0.8.0
|
|
|
|
- if 'new_callable' not in inspect.getargspec(mock.patch).args:
|
|
+ if 'new_callable' not in inspect.getfullargspec(mock.patch).args:
|
|
raise ImportError()
|
|
|
|
return True
|
|
--- a/stem/util/conf.py
|
|
+++ b/stem/util/conf.py
|
|
@@ -285,7 +285,7 @@
|
|
config.load(path)
|
|
config._settings_loaded = True
|
|
|
|
- if 'config' in inspect.getargspec(func).args:
|
|
+ if 'config' in inspect.getfullargspec(func).args:
|
|
return func(*args, config = config, **kwargs)
|
|
else:
|
|
return func(*args, **kwargs)
|