File switch_from_getargsspec_to_getfullargsspec.patch of Package saltbundlepy-cherrypy
Index: CherryPy-18.3.0/cherrypy/_cpdispatch.py
===================================================================
--- CherryPy-18.3.0.orig/cherrypy/_cpdispatch.py
+++ CherryPy-18.3.0/cherrypy/_cpdispatch.py
@@ -206,12 +206,8 @@ except ImportError:
def test_callable_spec(callable, args, kwargs): # noqa: F811
return None
else:
- getargspec = inspect.getargspec
- # Python 3 requires using getfullargspec if
- # keyword-only arguments are present
- if hasattr(inspect, 'getfullargspec'):
- def getargspec(callable):
- return inspect.getfullargspec(callable)[:4]
+ def getargspec(callable):
+ return inspect.getfullargspec(callable)[:4]
class LateParamPageHandler(PageHandler):