File: support-python311.patch

package info (click to toggle)
safeeyes 2.1.5-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,516 kB
  • sloc: python: 3,001; sh: 12; makefile: 11
file content (11 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/safeeyes/utility.py
+++ b/safeeyes/utility.py
@@ -666,7 +666,7 @@
     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