Skip to content

Commit

Permalink
Merge pull request #354 from matrix-org/anoa/drop_getargspec
Browse files Browse the repository at this point in the history
Update for compatibility with Python 3.11
  • Loading branch information
nailor authored Jan 3, 2023
2 parents cef78b6 + a165fcc commit 9bd6d3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dh_virtualenv
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Unreleased
[`@blag <https://github.com/blag>`_, `@Kami <https://github.com/Kami>`_,
`@dennybaa <https://github.com/dennybaa>`_, and
`@StackStorm contributors <https://github.com/StackStorm>`_]
* Replace usage of `inspect.getargspec` with `inspect.getfullargspec` for compatibility
with Python 3.11.

1.2.2
=====
Expand Down

0 comments on commit 9bd6d3f

Please sign in to comment.