[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
priority: low -> normal
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 72ffcb02f3ea6efcd3afe368996dc3ee89701898 by Miss Islington (bot) 
in branch '3.9':
bpo-46079: Replace external link that is down for maintenance. (GH-30315) 
(GH-30329)
https://github.com/python/cpython/commit/72ffcb02f3ea6efcd3afe368996dc3ee89701898


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 2bd73546959619b2519a7a830b3aaf190abeaf78 by Miss Islington (bot) 
in branch '3.10':
bpo-46079: Replace external link that is down for maintenance. (GH-30315) 
(GH-30328)
https://github.com/python/cpython/commit/2bd73546959619b2519a7a830b3aaf190abeaf78


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28544
pull_request: https://github.com/python/cpython/pull/30329

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +28543
pull_request: https://github.com/python/cpython/pull/30328

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset ac4eea21722d9ed1604c9c30a8d29ae2ce74f1b2 by Raymond Hettinger in 
branch 'main':
bpo-46079: Replace external link that is down for maintenance. (GH-30315)
https://github.com/python/cpython/commit/ac4eea21722d9ed1604c9c30a8d29ae2ce74f1b2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +28532
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30315

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This is a little closer to the current code.  Also it has a simpler and more 
universal url.


from urllib.request import urlopen
url = 'http://worldtimeapi.org/api/timezone/etc/UTC.txt'
with urlopen(url) as request:
for line in request:
line = line.decode('utf-8')
if line.startswith('datetime'):
print(line)

datetime: 2021-12-31T08:23:15.083004+00:00

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-30 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I'm thinking of this an a replacement example:

>>> import json
>>> import urllib.request
>>> url = "http://worldtimeapi.org/api/timezone/America/Los_Angeles;
>>> with urllib.request.urlopen(url) as response:
... timeinfo = json.load(response)
...
>>> print(timeinfo['datetime'])
2021-12-30T21:32:08.588278-08:00

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-15 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This seems to be a temporary outage, expected to be restored in the first half 
of 2022.  Source:  https://www.usno.navy.mil/USNO/time/master-clock

I'll look for an alternative time source that is currently online.

--
assignee: docs@python -> rhettinger
nosy: +rhettinger
priority: normal -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-15 Thread Alex Waygood


Change by Alex Waygood :


--
title: Broken URL in tutorial -> [doc] Broken URL in "Brief Tour of the 
Standard Library"
type:  -> behavior
versions: +Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com