From 0897f0c4f8034fa656cf2be3cda93bfb067d0a65 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Mon, 25 Mar 2002 21:40:36 +0000 Subject: [PATCH] eliminate unqualified except when checking for presence of LC_MESSAGES see bug 411881 --- Lib/locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/locale.py b/Lib/locale.py index d3c0eb1f924..81190be1e66 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")