diff --git a/bin/dh_virtualenv b/bin/dh_virtualenv index 8bafbcf..0a422ad 100755 --- a/bin/dh_virtualenv +++ b/bin/dh_virtualenv @@ -57,7 +57,7 @@ def main(): # passed the packages keyword argument. Newer (like Ubuntu # Precise) expect the whole options to be passed. - arguments = inspect.getargspec(DebHelper.__init__).args + arguments = inspect.getfullargspec(DebHelper.__init__).args if 'packages' in arguments: dh = DebHelper(packages=options.package or None) else: diff --git a/doc/changes.rst b/doc/changes.rst index 5ce5067..cd96408 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -19,6 +19,8 @@ Unreleased [`@blag `_, `@Kami `_, `@dennybaa `_, and `@StackStorm contributors `_] +* Replace usage of `inspect.getargspec` with `inspect.getfullargspec` for compatibility + with Python 3.11. 1.2.2 =====