]> granicus.if.org Git - python/commitdiff
#3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine.
authorGeorg Brandl <georg@python.org>
Sat, 30 Aug 2008 19:03:43 +0000 (19:03 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 30 Aug 2008 19:03:43 +0000 (19:03 +0000)
Lib/pydoc.py

index 21af32092914072e0128b5530da48f354d91317d..179026b051ce1c3af2345bc40829231c608811f7 100755 (executable)
@@ -1552,11 +1552,11 @@ class Helper:
         'del': ('del', 'BASICMETHODS'),
         'elif': 'if',
         'else': ('else', 'while for'),
-        'except': 'except',
+        'except': 'try',
         'exec': ('exec', ''),
-        'finally': 'finally',
+        'finally': 'try',
         'for': ('for', 'break continue while'),
-        'from': 'from',
+        'from': 'import',
         'global': ('global', 'NAMESPACES'),
         'if': ('if', 'TRUTHVALUE'),
         'import': ('import', 'MODULES'),