From 0e2e665cca5144007a6c159be21c13503178fe52 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 21 Aug 2008 00:35:05 -0700 Subject: [PATCH] Making float into int to stifle deprecation warning. --- model/Persistent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Persistent.py b/model/Persistent.py index d99b1a5..e982b42 100644 --- a/model/Persistent.py +++ b/model/Persistent.py @@ -78,7 +78,7 @@ class Persistent( object ): # Windows. so, replace the microseconds with a value from a higher-precision timer if revision == self.__revision: MICROSECONDS = 1000000 - revision = revision.replace( microsecond = time.clock() * MICROSECONDS % MICROSECONDS ) + revision = revision.replace( microsecond = int( time.clock() * MICROSECONDS ) % MICROSECONDS ) self.__revision = revision