From 5c669db194e6fd1d9eae11b4c0ba268faeeb460d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 Aug 2008 19:03:43 +0000 Subject: [PATCH] #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine. --- Lib/pydoc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 21af3209291..179026b051c 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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'),