Making float into int to stifle deprecation warning.
This commit is contained in:
parent
3fa1e8f8e6
commit
0e2e665cca
|
@ -78,7 +78,7 @@ class Persistent( object ):
|
||||||
# Windows. so, replace the microseconds with a value from a higher-precision timer
|
# Windows. so, replace the microseconds with a value from a higher-precision timer
|
||||||
if revision == self.__revision:
|
if revision == self.__revision:
|
||||||
MICROSECONDS = 1000000
|
MICROSECONDS = 1000000
|
||||||
revision = revision.replace( microsecond = time.clock() * MICROSECONDS % MICROSECONDS )
|
revision = revision.replace( microsecond = int( time.clock() * MICROSECONDS ) % MICROSECONDS )
|
||||||
|
|
||||||
self.__revision = revision
|
self.__revision = revision
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user