From: Skip Montanaro Date: Mon, 25 Mar 2002 21:40:36 +0000 (+0000) Subject: eliminate unqualified except when checking for presence of LC_MESSAGES X-Git-Tag: v2.3c1~6334 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0897f0c4f8034fa656cf2be3cda93bfb067d0a65;p=python eliminate unqualified except when checking for presence of LC_MESSAGES see bug 411881 --- diff --git a/Lib/locale.py b/Lib/locale.py index d3c0eb1f92..81190be1e6 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -719,7 +719,7 @@ def _print_locale(): try: LC_MESSAGES -except: +except NameError: pass else: __all__.append("LC_MESSAGES")