]> granicus.if.org Git - python/commitdiff
Merged revisions 68801 via svnmerge from
authorKurt B. Kaiser <kbk@shore.net>
Sat, 25 Apr 2009 17:30:40 +0000 (17:30 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 25 Apr 2009 17:30:40 +0000 (17:30 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68801 | raymond.hettinger | 2009-01-20 05:46:23 -0500 (Tue, 20 Jan 2009) | 5 lines

  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.
........

Lib/idlelib/EditorWindow.py

index 6744c911af2a8796ca2ae21042cef0bba73e6770..3044f0657b8b5f2f2174ed7a9069e01367c519d8 100644 (file)
@@ -88,7 +88,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