mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Fix Issue8619 docfix related to urllib.
This commit is contained in:
parent
e95a9ff112
commit
4db26af280
1 changed files with 4 additions and 4 deletions
|
|
@ -133,10 +133,10 @@ The :mod:`urllib.request` module defines the following functions:
|
||||||
of the :class:`FancyURLopener` class and use it to perform their requested
|
of the :class:`FancyURLopener` class and use it to perform their requested
|
||||||
actions. To override this functionality, programmers can create a subclass of
|
actions. To override this functionality, programmers can create a subclass of
|
||||||
:class:`URLopener` or :class:`FancyURLopener`, then assign an instance of that
|
:class:`URLopener` or :class:`FancyURLopener`, then assign an instance of that
|
||||||
class to the ``urllib._urlopener`` variable before calling the desired function.
|
class to the ``urllib.request._urlopener`` variable before calling the
|
||||||
For example, applications may want to specify a different
|
desired function. For example, applications may want to specify a different
|
||||||
:mailheader:`User-Agent` header than :class:`URLopener` defines. This can be
|
:mailheader:`User-Agent` header than :class:`URLopener` defines.
|
||||||
accomplished with the following code::
|
This can be accomplished with the following code::
|
||||||
|
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue