Skip to content

Commit 64a4147

Browse files
authored
Update stdlib.rst
1 parent d1d5dce commit 64a4147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/stdlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protocols. Two of the simplest are :mod:`urllib.request` for retrieving data
183183
from URLs and :mod:`smtplib` for sending mail::
184184

185185
>>> from urllib.request import urlopen
186-
>>> with urlopen('http://worldtimeapi.org/api/timezone/etc/UTC.txt') as response:
186+
>>> with urlopen('https://worldtimeapi.org/api/timezone/etc/UTC.txt') as response:
187187
... for line in response:
188188
... line = line.decode() # Convert bytes to a str
189189
... if line.startswith('datetime'):

0 commit comments

Comments
 (0)