summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-03-31 12:10:48 -0400
committerR David Murray <rdmurray@bitdance.com>2012-03-31 12:10:48 -0400
commit93a224dd7563212a5457e4efd2a3981a2323895d (patch)
tree7c59c7c595480fb6a4cac8773b39eee7b1e9852a /Lib/pydoc.py
parent04cd09552aafee3669cea64beefe62cb3281be9c (diff)
downloadcpython-git-93a224dd7563212a5457e4efd2a3981a2323895d.tar.gz
#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, and without this fix when we switch over to the 3.x docs being current, 2.7 would have pointed to the python3 tutorial.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 19a71d8304..674af6aacf 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1799,7 +1799,7 @@ has the same effect as typing a particular string at the help> prompt.
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/.
+the tutorial on the Internet at http://docs.python.org/%s/tutorial/.
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
@@ -1809,7 +1809,7 @@ To get a list of available modules, keywords, or topics, type "modules",
"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 = items[:]