[Zope3-checkins] CVS: Zope3/src/zope/app - datetimeutils.py:1.7
Fred L. Drake, Jr.
fred@zope.com
Fri, 11 Apr 2003 14:38:35 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv8284
Modified Files:
datetimeutils.py
Log Message:
We already have a class-based exception for this; use it.
=== Zope3/src/zope/app/datetimeutils.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/datetimeutils.py:1.6 Wed Feb 12 16:26:28 2003
+++ Zope3/src/zope/app/datetimeutils.py Fri Apr 11 14:38:34 2003
@@ -292,7 +292,7 @@
try: n=self._zmap[k.lower()]
except KeyError:
if numericTimeZoneMatch(k) == None:
- raise 'DateTimeError','Unrecognized timezone: %s' % k
+ raise DateTimeError('Unrecognized timezone: %s' % k)
return k
try:
return self._d[n]