This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Petter S, remi.lapeyre, vstinner
Date 2020-05-18.22:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589840182.85.0.132103949161.issue40673@roundup.psfhosted.org>
In-reply-to
Content
> URLOpener has been deprecated since Python3.3 (https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L1703-L1705) maybe it should just be removed from the codebase?

It emits a DeprecationWarning since at least Python 3.6, so yes, it's now fine to remove the feature. It's also documented as deprecated in:
https://docs.python.org/dev/library/urllib.request.html#urllib.request.URLopener

Maybe we kept it longer than usual because it was common in Python 2.7 to use it, and we tried to keep support for code base compatible with Python 2 and Python 3? I don't know.

I'm fine with removing the class in Python 3.10, but IMO it's too late for Python 3.9 (feature freeze is today).
History
Date User Action Args
2020-05-18 22:16:22vstinnersetrecipients: + vstinner, Petter S, remi.lapeyre
2020-05-18 22:16:22vstinnersetmessageid: <1589840182.85.0.132103949161.issue40673@roundup.psfhosted.org>
2020-05-18 22:16:22vstinnerlinkissue40673 messages
2020-05-18 22:16:22vstinnercreate