]> granicus.if.org Git - python/commitdiff
eliminate unqualified except when checking for presence of LC_MESSAGES
authorSkip Montanaro <skip@pobox.com>
Mon, 25 Mar 2002 21:40:36 +0000 (21:40 +0000)
committerSkip Montanaro <skip@pobox.com>
Mon, 25 Mar 2002 21:40:36 +0000 (21:40 +0000)
see bug 411881

Lib/locale.py

index d3c0eb1f9245c3f127f6c7b728a7ce0dea703e72..81190be1e66ae870af786a89556d7c57ea0f6662 100644 (file)
@@ -719,7 +719,7 @@ def _print_locale():
 
 try:
     LC_MESSAGES
-except:
+except NameError:
     pass
 else:
     __all__.append("LC_MESSAGES")