[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem] 04/20: Fix test failure with python3.11
This is an automated email from the git hooks/post-receive script.
atagar pushed a commit to branch maint
in repository stem.
commit 0bf9aee7151e65594c532826bb04636e1d80fb6f
Author: juga <juga@xxxxxxxxxx>
AuthorDate: Tue May 30 08:50:36 2023 +0000
Fix test failure with python3.11
Applied patch from https://salsa.debian.org/debian/python-stem/-/commit/4b02051b35418a45b045379f69c59cd8904eade4
Author: Bas Couwenberg <sebastic@xxxxxxxxxx> 2023-01-19 09:03:34
Path b8063b3b23af95e02b27848f6ab5c82edd644609 isn't applicable as it is this maint branch.
Closes #130
---
stem/control.py | 2 +-
stem/prereq.py | 2 +-
stem/util/conf.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index e192e295..e6fab6cf 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -474,7 +474,7 @@ def with_default(yields = False):
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):
diff --git a/stem/prereq.py b/stem/prereq.py
index d0963c3f..e7ab4a74 100644
--- a/stem/prereq.py
+++ b/stem/prereq.py
@@ -241,7 +241,7 @@ def is_mock_available():
# 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
diff --git a/stem/util/conf.py b/stem/util/conf.py
index 80399810..15c4db8b 100644
--- a/stem/util/conf.py
+++ b/stem/util/conf.py
@@ -285,7 +285,7 @@ def uses_settings(handle, path, lazy_load = True):
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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits