]> granicus.if.org Git - python/commitdiff
Use Georg's new permalinks to documentation by version number.
authorRaymond Hettinger <python@rcn.com>
Tue, 20 Jan 2009 10:46:23 +0000 (10:46 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 20 Jan 2009 10:46:23 +0000 (10:46 +0000)
That assures that IDLE's help always points to the correct
version and the latest update with all bug fixes.

Lib/idlelib/EditorWindow.py

index 8d35198c179228f01a43c3b0daebae06e4c32011..0b34242f93c365400865a653b0bdca20837b3b3e 100644 (file)
@@ -80,7 +80,7 @@ class EditorWindow(object):
                     # Safari requires real file:-URLs
                     EditorWindow.help_url = 'file://' + EditorWindow.help_url
             else:
-                EditorWindow.help_url = "http://www.python.org/doc/current"
+                EditorWindow.help_url = "http://docs.python.org/%d.%d" % sys.version_info[:2]
         currentTheme=idleConf.CurrentTheme()
         self.flist = flist
         root = root or flist.root