Skip to content

Update for compatibility with Python 3.11#354

Merged
nailor merged 2 commits intospotify:masterfrom
matrix-org:anoa/drop_getargspec
Jan 3, 2023
Merged

Update for compatibility with Python 3.11#354
nailor merged 2 commits intospotify:masterfrom
matrix-org:anoa/drop_getargspec

Conversation

@anoadragon453
Copy link
Copy Markdown
Contributor

dh-virtualenv is a tool that packages Python dependencies from PyPI into debian packages and run with the installee system's Python interpreter. dh-virtualenv relied on the inspect.getargspec method, which has been deprecated since Python 3.0. Finally, it appears that this method has been removed in Python 3.11.x, which Debian sid ships with.

This PR updates the check to use inspect.getfullargspec instead, which is the suggested replacement.

It's debatable whether this check is even still needed, but for now let's do the simple thing and update it to be compatible with modern Python versions.

It's debatable whether this check is even still needed, but for now
let's do the simple thing and update it to be compatible with modern
Python versions.
@nailor
Copy link
Copy Markdown
Collaborator

nailor commented Jan 3, 2023

Good catch, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants