changeset 4928:6c4c93f896f8

replaced math.floor by int
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 07 Aug 2009 09:58:15 +0200
parents 27d5d0b875a9
children 1c8da2f463ee
files MoinMoin/datastruct/backends/wiki_dicts.py MoinMoin/datastruct/backends/wiki_groups.py
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/datastruct/backends/wiki_dicts.py	Thu Aug 06 18:27:45 2009 +0200
+++ b/MoinMoin/datastruct/backends/wiki_dicts.py	Fri Aug 07 09:58:15 2009 +0200
@@ -10,7 +10,6 @@
 
 
 import re
-import math
 
 from MoinMoin import caching, wikiutil
 from MoinMoin.Page import Page
@@ -48,7 +47,7 @@
                 #
                 # cache_mtime is float while page_mtime is integer
                 # The comparision needs to be done on the lowest type of both
-                if math.floor(cache_mtime) > math.floor(page_mtime):
+                if int(cache_mtime) > int(page_mtime):
                     # cache is uptodate
                     return cache.content()
                 else:
--- a/MoinMoin/datastruct/backends/wiki_groups.py	Thu Aug 06 18:27:45 2009 +0200
+++ b/MoinMoin/datastruct/backends/wiki_groups.py	Fri Aug 07 09:58:15 2009 +0200
@@ -18,7 +18,6 @@
             2009 MoinMoin:DmitrijsMilajevs
 @license: GPL, see COPYING for details
 """
-import math
 
 from MoinMoin import caching, wikiutil
 from MoinMoin.Page import Page
@@ -44,7 +43,7 @@
                 #
                 # cache_mtime is float while page_mtime is integer
                 # The comparision needs to be done on the lowest type of both
-                if math.floor(cache_mtime) > math.floor(page_mtime):
+                if int(cache_mtime) > int(page_mtime):
                     # cache is uptodate
                     return cache.content()
                 else: