-
Notifications
You must be signed in to change notification settings - Fork 176
Deprecation warning when importing on Python 3.10 #104
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
Comments
This is now a hard ImportError since 3.10.0a5:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Python 3.10.0a3:
This was "fixed" in 3bfe294, and indeed there's no warning on 3.8.5:
The relevant code is
python-tabulate/tabulate.py
Lines 13 to 16 in 2552e6d
However, the fix is not tolerant to Python 3.10's extra digit --
python_version_tuple()
returns('3', '10', '0a3')
, and since these are strings'10'
is treated as being less than'3'
. The recommended way to perform this is:since
sys.version_info
is a tuple of ints, and correctly handles two-digit minor versions.Happy to submit a PR to fix this, assuming you still want to support Python versions that old?
The text was updated successfully, but these errors were encountered: