[Checkins] SVN: Zope3/trunk/src/zope/interface/common/interfaces.py
OverflowWarning was removed in Python 2.5
Jim Fulton
jim at zope.com
Mon Feb 19 07:26:59 EST 2007
Log message for revision 72677:
OverflowWarning was removed in Python 2.5
Changed:
U Zope3/trunk/src/zope/interface/common/interfaces.py
-=-
Modified: Zope3/trunk/src/zope/interface/common/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/interface/common/interfaces.py 2007-02-19 12:21:01 UTC (rev 72676)
+++ Zope3/trunk/src/zope/interface/common/interfaces.py 2007-02-19 12:26:58 UTC (rev 72677)
@@ -77,7 +77,10 @@
classImplements(NotImplementedError, INotImplementedError)
classImplements(OSError, IOSError)
classImplements(OverflowError, IOverflowError)
-classImplements(OverflowWarning, IOverflowWarning)
+try:
+ classImplements(OverflowWarning, IOverflowWarning)
+except NameError:
+ pass # OverflowWarning was removed in Python 2.5
classImplements(ReferenceError, IReferenceError)
classImplements(RuntimeError, IRuntimeError)
classImplements(RuntimeWarning, IRuntimeWarning)
More information about the Checkins
mailing list