[Zope-Checkins] SVN: Zope/trunk/src/Products/PluginIndexes/Date Make sure to keep MAX32 as an int

Hanno Schlichting hannosch at hannosch.eu
Thu Aug 5 11:43:36 EDT 2010


Log message for revision 115501:
  Make sure to keep MAX32 as an int
  

Changed:
  U   Zope/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py
  U   Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py

-=-
Modified: Zope/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py
===================================================================
--- Zope/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py	2010-08-05 15:38:04 UTC (rev 115500)
+++ Zope/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py	2010-08-05 15:43:36 UTC (rev 115501)
@@ -51,7 +51,7 @@
     DSTOFFSET = STDOFFSET
 
 DSTDIFF = DSTOFFSET - STDOFFSET
-MAX32 = 2**31 - 1
+MAX32 = int(2**31 - 1)
 
 
 class LocalTimezone(tzinfo):

Modified: Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py
===================================================================
--- Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py	2010-08-05 15:38:04 UTC (rev 115500)
+++ Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py	2010-08-05 15:43:36 UTC (rev 115501)
@@ -37,7 +37,7 @@
 from Products.PluginIndexes.interfaces import IDateRangeIndex
 
 _dtmldir = os.path.join( package_home( globals() ), 'dtml' )
-MAX32 = 2**31 - 1
+MAX32 = int(2**31 - 1)
 
 
 class DateRangeIndex(UnIndex):



More information about the Zope-Checkins mailing list