[issue28941] Update the link to Source Code in Python Docs from hg to github

New submission from Mariatta Wijaya: Some Python docs include a link to the Source Code, for example: https://docs.python.org/3.6/library/abc.html Once the repo is moved to github, the link should probably be updated to point to github: https://github.com/python/cpython/blob/master/Lib/abc.py ---------- assignee: docs@python components: Documentation messages: 282960 nosy: Mariatta, docs@python priority: normal severity: normal status: open title: Update the link to Source Code in Python Docs from hg to github versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Changes by Mariatta Wijaya <mariatta.wijaya@gmail.com>: ---------- nosy: +brett.cannon _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Brett Cannon added the comment: How is this different from issue #28929? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: There's source code of the documentation itself https://github.com/python/cpython/blob/master/Doc/library/abc.rst ) for and source code of abc.py https://github.com/python/cpython/blob/master/Lib/abc.py Maybe I misunderstood, I figured issue #28929 is for fixing the docs url only. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Brett Cannon added the comment: No, I'm the one who misunderstood; I read the title of the issue too quickly after reading the doc source link issue and my brain didn't pick up on the "source code" part of the title. Sorry about that. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: Attached is the patch that will work for 3.6 and 3.7 branches. The url will be changed from https://hg.python.org/cpython/file/3.6/Lib/abc.py into https://github.com/python/cpython/blob/3.6/Lib/abc.py for python version 3.6, and https://github.com/python/cpython/blob/master/Lib/abc.py for python version 3.7 ---------- keywords: +patch Added file: http://bugs.python.org/file45904/issue28941.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: Patch for 3.5 branch. The url will change from https://hg.python.org/cpython/file/3.5/Lib/abc.py into https://github.com/python/cpython/blob/3.5/Lib/abc.py ---------- Added file: http://bugs.python.org/file45905/issue28941v35.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: Patch for 2.7 branch. The url will change from https://hg.python.org/cpython/file/2.7/Lib/abc.py into https://github.com/python/cpython/blob/2.7/Lib/abc.py ---------- Added file: http://bugs.python.org/file45906/issue28941v27.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: Please let me know if I'm doing this right :) Thanks. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Changes by Mariatta Wijaya <mariatta.wijaya@gmail.com>: ---------- assignee: docs@python -> Mariatta _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________

Mariatta Wijaya added the comment: This was addressed in the very first pull request on CPython GitHub (Thanks, Brett ) Backported to 2.7, 3.5, and 3.6 ---------- resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue28941> _______________________________________
participants (2)
-
Brett Cannon
-
Mariatta Wijaya