[Zope3-checkins] CVS: Zope3/src/zope/i18n - locales.py:1.12
Jim Fulton
jim@zope.com
Tue, 25 Mar 2003 14:00:35 -0500
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv30016
Modified Files:
locales.py
Log Message:
Fixed some exception handlers that spelled catching multiple
exceptions incorrectly.
=== Zope3/src/zope/i18n/locales.py 1.11 => 1.12 ===
--- Zope3/src/zope/i18n/locales.py:1.11 Tue Mar 25 13:43:15 2003
+++ Zope3/src/zope/i18n/locales.py Tue Mar 25 14:00:35 2003
@@ -408,7 +408,7 @@
"See ZopeProducts.LocaleProvider.interfaces.ILocale"
try:
pattern = self.getDefaultCalendar().timePatterns[name]
- except AttributeError, KeyError:
+ except (AttributeError, KeyError):
return self._getNextLocale().getTimeFormatter(name)
return DateTimeFormat(pattern, self._createFullCalendar())
@@ -436,7 +436,7 @@
"See ZopeProducts.LocaleProvider.interfaces.ILocale"
try:
pattern = self.getDefaultNumberFormat().patterns[name]
- except AttributeError, KeyError:
+ except (AttributeError, KeyError):
return self._getNextLocale().getNumberFormatter(name)
symbols = {}
for id in ((None, None, None),