[Python-checkins] r81421 - python/branches/py3k/Doc/library/urllib.request.rst
georg.brandl
python-checkins at python.org
Fri May 21 23:01:32 CEST 2010
Author: georg.brandl
Date: Fri May 21 23:01:32 2010
New Revision: 81421
Log:
Fix variable name in example.
Modified:
python/branches/py3k/Doc/library/urllib.request.rst
Modified: python/branches/py3k/Doc/library/urllib.request.rst
==============================================================================
--- python/branches/py3k/Doc/library/urllib.request.rst (original)
+++ python/branches/py3k/Doc/library/urllib.request.rst Fri May 21 23:01:32 2010
@@ -1079,7 +1079,7 @@
>>> 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
More information about the Python-checkins
mailing list