]> granicus.if.org Git - python/commitdiff
Merged revisions 81421 via svnmerge from
authorGeorg Brandl <georg@python.org>
Fri, 21 May 2010 21:02:56 +0000 (21:02 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 21 May 2010 21:02:56 +0000 (21:02 +0000)
svn+ssh://svn.python.org/python/branches/py3k

........
  r81421 | georg.brandl | 2010-05-21 23:01:32 +0200 (Fr, 21 Mai 2010) | 1 line

  Fix variable name in example.
........

Doc/library/urllib.request.rst

index 07d1daa2425d3f66266f3d59415ce818a785eab7..d153384cc541cecc077a07ba589136806b8f3635 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