cpython: d478c0a68bcb (original) (raw)
Mercurial > cpython
changeset 76015:d478c0a68bcb 3.2
#14434: make tutorial link in 'help' banner version-specific Without this fix, both 2.7 and 3.x would always point to the "current" docs...which means that before this fix python 3.2 'help' pointed to the 2.7 tutorial. [#14434]
R David Murray rdmurray@bitdance.com | |
---|---|
date | Sat, 31 Mar 2012 12:06:35 -0400 |
parents | 722ce1be9eeb |
children | ee9b6574b497 6774a2285579 |
files | Lib/pydoc.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/pydoc.py 4 |
line wrap: on
line diff
--- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1829,7 +1829,7 @@ has the same effect as typing a particul Welcome to Python %s! This is the online help utility. If this is your first time using Python, you should definitely check out -the tutorial on the Internet at http://docs.python.org/tutorial/.[](#l1.7) +the tutorial on the Internet at http://docs.python.org/%s/tutorial/.[](#l1.8) Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and @@ -1839,7 +1839,7 @@ To get a list of available modules, keyw "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam". -''' % sys.version[:3]) +''' % tuple([sys.version[:3]]*2)) def list(self, items, columns=4, width=80): items = list(sorted(items))