diff Lib/idlelib/EditorWindow.py @ 50932:cc078a575eed legacy-trunk

Use Georg's new permalinks to documentation by version number. That assures that IDLE's help always points to the correct version and the latest update with all bug fixes.
author Raymond Hettinger <python@rcn.com>
date Tue, 20 Jan 2009 10:46:23 +0000
parents b53604fad54b
children 39e9a20b7d7f
line wrap: on
line diff
--- a/Lib/idlelib/EditorWindow.py	Tue Jan 20 07:11:47 2009 +0000
+++ b/Lib/idlelib/EditorWindow.py	Tue Jan 20 10:46:23 2009 +0000
@@ -80,7 +80,7 @@
                     # 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