[Zope3-checkins] CVS: Zope3/src/zope/i18n - locales.py:1.11

Stephan Richter srichter@cbu.edu
Tue, 25 Mar 2003 13:43:16 -0500


Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv27380/src/zope/i18n

Modified Files:
	locales.py 
Log Message:
Found bug that kept formatters from working.


=== Zope3/src/zope/i18n/locales.py 1.10 => 1.11 ===
--- Zope3/src/zope/i18n/locales.py:1.10	Tue Mar 25 09:48:01 2003
+++ Zope3/src/zope/i18n/locales.py	Tue Mar 25 13:43:15 2003
@@ -416,7 +416,7 @@
         "See ZopeProducts.LocaleProvider.interfaces.ILocale"
         try:
             pattern = self.getDefaultCalendar().datePatterns[name]
-        except AttributeError, KeyError:
+        except (AttributeError, KeyError):
             return self._getNextLocale().getDateFormatter(name)
         return DateTimeFormat(pattern, self._createFullCalendar())
 
@@ -424,7 +424,7 @@
         "See ZopeProducts.LocaleProvider.interfaces.ILocale"
         try:
             pattern = self.getDefaultCalendar().datetimePattern
-        except AttributeError, KeyError:
+        except (AttributeError, KeyError):
             return self._getNextLocale().getDateTimeFormatter(name)
         date_pat = self.getDateFormatter(name).getPattern()
         time_pat = self.getTimeFormatter(name).getPattern()
@@ -447,7 +447,7 @@
             try:
                 format = locales.getLocale(*id).getDefaultNumberFormat()
                 symbols.update(format.symbols)
-            except AttributeError, KeyError:
+            except (AttributeError, KeyError):
                 pass # Locale has no number format information
 
         return NumberFormat(pattern, symbols)