diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-22 17:19:17 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-22 17:19:17 +0000 |
commit | 3b63c3d0590e33d7962398ae1fa8b54687f4c18d (patch) | |
tree | e69b3cb12b8082bd93818d71d388e258e090a445 | |
parent | 3fda93e930ff71b5b7a2bd4270f3a69e90164b2a (diff) | |
download | cpython-git-3b63c3d0590e33d7962398ae1fa8b54687f4c18d.tar.gz |
Merged revisions 78325 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r78325 | senthil.kumaran | 2010-02-22 22:47:22 +0530 (Mon, 22 Feb 2010) | 2 lines
Fixing Issue7399 - Fixing an example of urllib usage.
........
-rw-r--r-- | Doc/tutorial/stdlib.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index d9a15fa700..0f607c4022 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -152,6 +152,7 @@ from urls and :mod:`smtplib` for sending mail:: >>> from urllib.request import urlopen >>> for line in urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'): + ... line = line.decode('utf-8') # Decoding the binary data to text. ... if 'EST' in line or 'EDT' in line: # look for Eastern Time ... print(line) |