Fix variable name in example.

This commit is contained in:
Georg Brandl 2010-05-21 21:01:32 +00:00
parent 325524e967
commit fe4fd83737
1 changed files with 1 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ will use same for decoding the bytes object. ::
>>> import urllib.request >>> import urllib.request
>>> f = urllib.request.urlopen('http://www.python.org/') >>> 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" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtm "http://www.w3.org/TR/xhtml1/DTD/xhtm