[issue10050] urllib.request still has old 2.x urllib primitives
report at bugs.python.org
Wed Mar 14 07:33:51 CET 2012
Senthil Kumaran <senthil at uthcode.com> added the comment:
Here is patch which adds DeprecationWarning to URLOpener and (it's subclasses FancyURLopener) as well as some other Request methods.
The idea would be, in the next release we remove this old URLOpener and it's subclasses and remove (or make _private) the Request methods.
Added tests for DeprecationWarnings too.
I am trying to see if more classes/methods from old urllib can be deprecated/removed.
But this first patch is for no-doubt ones. If one have any review comments, please provide. Otherwise I shall check it in 3.3.a1.
Added file: http://bugs.python.org/file24839/issue10050-deprecation.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list