void-packages/srcpkgs/safeeyes/patches/fix-getargspec.patch
tibequadorian 285d6d6036 safeeyes: update to 2.1.4.
Also fix getargspec error with python 3.11.
2022-11-27 12:12:51 -05:00

13 lines
547 B
Diff

diff --git a/safeeyes/utility.py b/safeeyes/utility.py
index bf2dede..7e08735 100644
--- a/safeeyes/utility.py
+++ b/safeeyes/utility.py
@@ -666,7 +666,7 @@ def has_method(module, method_name, no_of_args=0):
Check whether the given function is defined in the module or not.
"""
if hasattr(module, method_name):
- if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args:
+ if len(inspect.getfullargspec(getattr(module, method_name)).args) == no_of_args:
return True
return False