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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0897f0c4f8034fa656cf2be3cda93bfb067d0a65;p=thirdparty%2FPython%2Fcpython.git eliminate unqualified except when checking for presence of LC_MESSAGES see bug 411881 --- diff --git a/Lib/locale.py b/Lib/locale.py index d3c0eb1f9245..81190be1e66a 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")