mirror of https://github.com/python/cpython
Merged revisions 81421 via svnmerge from
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. ........
This commit is contained in:
parent
1bb061d0a5
commit
4e0bd6d40b
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue