Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemLocateError broken on Python 2 #385

Closed
JustAnotherArchivist opened this issue Dec 6, 2020 · 1 comment
Closed

ItemLocateError broken on Python 2 #385

JustAnotherArchivist opened this issue Dec 6, 2020 · 1 comment

Comments

@JustAnotherArchivist
Copy link
Contributor

internetarchive claims Python 2 compatibility, but ItemLocateError (introduced by deb0d91 and first released in 1.9.2) makes use of super(), which is only available in this argument-less form on Python 3.

> python2 -c 'from internetarchive.exceptions import ItemLocateError; ItemLocateError()'
TypeError: super() takes at least 1 argument (0 given)

I haven't checked whether there are any other issues with Python 2 as I uninstalled that after it reached EOL at the beginning of this year.

Credit for finding this goes to @jodizzle.

@JustAnotherArchivist
Copy link
Contributor Author

Fixed by dropping Python 2 support per #435.

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

No branches or pull requests

1 participant