summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-09-21 15:06:17 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-09-21 15:06:17 +0100
commit6ecd2a55995e24095c58ea689932f0b584a9ae40 (patch)
treedaf2f271d8562b4039a6580b704cf4d1a4f8b2b6
parent18a4e35cce6294e12f49ea363f94c04ec599a800 (diff)
downloadpykolab-6ecd2a55995e24095c58ea689932f0b584a9ae40.tar.gz
Use math.floor(), not math.round()
-rw-r--r--pykolab/constants.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/constants.py.in b/pykolab/constants.py.in
index 25cc9f0..3e9e2c2 100644
--- a/pykolab/constants.py.in
+++ b/pykolab/constants.py.in
@@ -30,7 +30,7 @@ __release__ = '@RELEASE@'
if @RELEASE@ < 1:
__status__ = 'snapshot'
-elif math.round(@RELEASE@,0) < @RELEASE@:
+elif math.floor((float)@RELEASE@) < (float)@RELEASE@:
__status__ = 'prerelease'
else:
__status__ = 'stable'