From a1b20429e7e2ba1b44414459afd5a2b50788cd9c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Jan 2023 08:07:03 +0000 Subject: gentoo auto-resync : 25:01:2023 - 08:07:03 --- .../files/safeeyes-2.1.5-python-3.11.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 x11-misc/safeeyes/files/safeeyes-2.1.5-python-3.11.patch (limited to 'x11-misc/safeeyes/files') diff --git a/x11-misc/safeeyes/files/safeeyes-2.1.5-python-3.11.patch b/x11-misc/safeeyes/files/safeeyes-2.1.5-python-3.11.patch new file mode 100644 index 000000000000..e494dfc1a2ce --- /dev/null +++ b/x11-misc/safeeyes/files/safeeyes-2.1.5-python-3.11.patch @@ -0,0 +1,25 @@ +From 1fabfb9eddc2b67d174dffba0e46ecb4fb4dec71 Mon Sep 17 00:00:00 2001 +From: tibequadorian +Date: Tue, 24 Jan 2023 18:39:49 +0100 +Subject: [PATCH] utility.py: Fix getargspec error with python 3.11 + +--- + safeeyes/utility.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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 + +-- +2.39.1 + -- cgit v1.2.3