summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-05-18 04:01:11 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-05-18 04:01:11 (GMT)
commit4cee9bff1fc23845e772f84796a6ffece29e7fa7 (patch)
tree680964a3ae2e76cc55d05677c58739eedbeff974
parent5c3ef067ca89527afd1cd7a317e64e2b25326b39 (diff)
downloadcpython-4cee9bff1fc23845e772f84796a6ffece29e7fa7.zip
cpython-4cee9bff1fc23845e772f84796a6ffece29e7fa7.tar.gz
cpython-4cee9bff1fc23845e772f84796a6ffece29e7fa7.tar.bz2
Merged revisions 81283 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81283 | senthil.kumaran | 2010-05-18 09:28:36 +0530 (Tue, 18 May 2010) | 3 lines Removing the reference in the docs for overriding _urlopener global value. See Issue8619 for details. ........
-rw-r--r--Doc/library/urllib.request.rst20
1 files changed, 0 insertions, 20 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 03362db..53b9c2e 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -126,26 +126,6 @@ The :mod:`urllib.request` module defines the following functions:
of the data it has downloaded, and just returns it. In this case you just have
to assume that the download was successful.
-
-.. data:: _urlopener
-
- The public functions :func:`urlopen` and :func:`urlretrieve` create an instance
- of the :class:`FancyURLopener` class and use it to perform their requested
- actions. To override this functionality, programmers can create a subclass of
- :class:`URLopener` or :class:`FancyURLopener`, then assign an instance of that
- class to the ``urllib.request._urlopener`` variable before calling the
- desired function. For example, applications may want to specify a different
- :mailheader:`User-Agent` header than :class:`URLopener` defines.
- This can be accomplished with the following code::
-
- import urllib.request
-
- class AppURLopener(urllib.request.FancyURLopener):
- version = "App/1.7"
-
- urllib.request._urlopener = AppURLopener()
-
-
.. function:: urlcleanup()
Clear the cache that may have been built up by previous calls to