[Python-checkins] cpython (3.3): #10050 - Document DeprecationWarnings for URLopener and FancyURLopener
senthil.kumaran
python-checkins at python.org
Tue Mar 19 01:07:39 CET 2013
http://hg.python.org/cpython/rev/ea76cfff5851
changeset: 82741:ea76cfff5851
branch: 3.3
parent: 82737:9ac6a3871d76
user: Senthil Kumaran <senthil at uthcode.com>
date: Mon Mar 18 17:09:50 2013 -0700
summary:
#10050 - Document DeprecationWarnings for URLopener and FancyURLopener (msg172874 )
files:
Doc/library/urllib.request.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -1274,6 +1274,8 @@
.. class:: URLopener(proxies=None, **x509)
+ .. deprecated:: 3.3
+
Base class for opening and reading URLs. Unless you need to support opening
objects using schemes other than :file:`http:`, :file:`ftp:`, or :file:`file:`,
you probably want to use :class:`FancyURLopener`.
@@ -1343,6 +1345,8 @@
.. class:: FancyURLopener(...)
+ .. deprecated:: 3.3
+
:class:`FancyURLopener` subclasses :class:`URLopener` providing default handling
for the following HTTP response codes: 301, 302, 303, 307 and 401. For the 30x
response codes listed above, the :mailheader:`Location` header is used to fetch
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list