[issue19906] Typo in urllib documentation

New submission from Claudiu.Popa: In the first note from urllib.rst, there is a reference to urllib being replaced by urllib2 in Python 3, which is False. ---------- assignee: docs@python components: Documentation files: urllib2.patch keywords: patch messages: 205359 nosy: Claudiu.Popa, docs@python priority: normal severity: normal status: open title: Typo in urllib documentation type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file33002/urllib2.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________

Éric Araujo added the comment: LGTM. ---------- nosy: +eric.araujo, ezio.melotti stage: -> commit review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________

Ezio Melotti added the comment: I think that what the note was trying to say is that urlopen in Python 3 is equivalent to urllib2.urlopen in Python 2, so before switching to Python 3, people might want to move from urllib.urlopen to urllib2.urlopen. Does the attached patch sound better? ---------- Added file: http://bugs.python.org/file33545/issue19906.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________

Claudiu.Popa added the comment: Yep, it sounds better. There's an additional warning in urllib.urlopen which states a similar thing: warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " "favor of urllib2.urlopen()", stacklevel=2) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________

Roundup Robot added the comment: New changeset 2ac7551986ba by Ezio Melotti in branch '2.7': #19906: clarify note in urllib docs. http://hg.python.org/cpython/rev/2ac7551986ba ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________

Ezio Melotti added the comment: Fixed, thanks for the report and the initial patch! ---------- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19906> _______________________________________
participants (4)
-
Claudiu.Popa
-
Ezio Melotti
-
Roundup Robot
-
Éric Araujo