-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
xml.etree.cElementTree removed from Python 3.9 #2002
Comments
@freddrake - Thank you for your post. Python 3.9 won’t get offically released till October: https://www.python.org/dev/peps/pep-0596/#schedule. But we will need to update the botocore code to not use that interface before that happens. Marking this as enhancement. |
Right. For people trying to make sure their applications are prepared, it's important that dependencies are compatible. It's not urgent, because there's still plenty of time in the schedule, but the sooner dependencies are ready, the better it is for everyone. For the record, finding this issue also triggered a couple of (small-ish) bugs reported against Python: |
Hitting this in Fedora's 3.9 prep as well: https://bugzilla.redhat.com/show_bug.cgi?id=1818594 |
@swetashre All you need to do, for now, is and it should keep working in Python 3.9 try:
import xml.etree.cElementTree
except ImportError:
import xml.etree.ElementTree as cElementTree |
I've run my change-set in the linked PR against
|
Bump supported python version to 3.8. (Python 3.9 is not yet tested due to boto/botocore#2002) Bump dependencies versions to latest. Fix "coverage" invocation.
With newer versions of Python,
xml.etree.ElementTree
should be used directly.The text was updated successfully, but these errors were encountered: