]> granicus.if.org Git - python/commitdiff
Merged revisions 68797,68801 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 20 Jan 2009 15:01:54 +0000 (15:01 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 20 Jan 2009 15:01:54 +0000 (15:01 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68797 | raymond.hettinger | 2009-01-20 01:11:47 -0600 (Tue, 20 Jan 2009) | 11 lines

  Don't disrupt automatic url target name generation
  with manually specified, conflicting names.

  Before:
      http://docs.python.org/dev/library/collections.html#id1

  After:
      http://docs.python.org/dev/library/collections.html#counter-objects
........
  r68801 | raymond.hettinger | 2009-01-20 04:46:23 -0600 (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 6ce166d239981e91112f64820f6acb8163cd5800..1512c464af4c0f5f392ca058abea54fbad295d81 100644 (file)
@@ -82,7 +82,7 @@ class EditorWindow(object):
                     # Safari requires real file:-URLs
                     EditorWindow.help_url = 'file://' + EditorWindow.help_url
             else:
-                EditorWindow.help_url = "http://docs.python.org/dev/3.0/"
+                EditorWindow.help_url = "http://docs.python.org/%d.%d" % sys.version_info[:2]
         currentTheme=idleConf.CurrentTheme()
         self.flist = flist
         root = root or flist.root