changeset: 82741:ea76cfff5851 branch: 3.3 parent: 82737:9ac6a3871d76 user: Senthil Kumaran date: Mon Mar 18 17:09:50 2013 -0700 files: Doc/library/urllib.request.rst description: #10050 - Document DeprecationWarnings for URLopener and FancyURLopener (msg172874 ) diff -r 9ac6a3871d76 -r ea76cfff5851 Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Mon Mar 18 15:04:03 2013 -0700 +++ b/Doc/library/urllib.request.rst Mon Mar 18 17:09:50 2013 -0700 @@ -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

AltStyle によって変換されたページ (->オリジナル) /