]> granicus.if.org Git - python/commitdiff
Merged revisions 66076 via svnmerge from
authorGeorg Brandl <georg@python.org>
Sat, 30 Aug 2008 19:53:05 +0000 (19:53 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 30 Aug 2008 19:53:05 +0000 (19:53 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66076 | georg.brandl | 2008-08-30 21:03:43 +0200 (Sat, 30 Aug 2008) | 2 lines

  #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine.
........

Lib/pydoc.py

index 09e1d256c251c4f068b30a4abc35527eb2a79740..b334333050a771442c93e21889e7c46fbeb78fd7 100755 (executable)
@@ -1548,10 +1548,10 @@ class Helper:
         'del': ('del', 'BASICMETHODS'),
         'elif': 'if',
         'else': ('else', 'while for'),
-        'except': 'except',
-        'finally': 'finally',
+        'except': 'try',
+        'finally': 'try',
         'for': ('for', 'break continue while'),
-        'from': 'from',
+        'from': 'import',
         'global': ('global', 'NAMESPACES'),
         'if': ('if', 'TRUTHVALUE'),
         'import': ('import', 'MODULES'),