diff --git a/pyext.py b/pyext.py index 2f4645a..dee1e1c 100644 --- a/pyext.py +++ b/pyext.py @@ -31,6 +31,9 @@ import sys, inspect, types, functools +if not hasattr(inspect, 'getargspec'): + inspect.getargspec = inspect.getfullargspec + def _targspec(func, specs, attr='__orig_arg__'): if hasattr(func, '__is_overload__') and func.__is_overload__: return getattr(func, attr)