]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix variable name in example.
authorGeorg Brandl <georg@python.org>
Fri, 21 May 2010 21:01:32 +0000 (21:01 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 21 May 2010 21:01:32 +0000 (21:01 +0000)
Doc/library/urllib.request.rst

index dac7ef759a74ed7327675fa788dccee7ba57f0b2..2c48146858cf701c975f6ce9085f1c87fe5d07c6 100644 (file)
@@ -1079,7 +1079,7 @@ will use same for decoding the bytes object. ::
 
    >>> import urllib.request
    >>> f = urllib.request.urlopen('http://www.python.org/')
-   >>> print(fp.read(100).decode('utf-8'))
+   >>> print(f.read(100).decode('utf-8'))
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtm