We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbacb06 commit ac0b889Copy full SHA for ac0b889
1 file changed
Doc/tutorial/stdlib.rst
@@ -152,6 +152,7 @@ from urls and :mod:`smtplib` for sending mail::
152
153
>>> from urllib.request import urlopen
154
>>> for line in urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'):
155
+ ... line = line.decode('utf-8') # Decoding the binary data to text.
156
... if 'EST' in line or 'EDT' in line: # look for Eastern Time
157
... print(line)
158
0 commit comments