[billreminder] Changed from binary literal to int to support python 2.5 and older.



commit d59248f96bfaad789e732ddfa3b2ddf71626aabc
Author: Luiz Armesto <luiz armesto gmail com>
Date:   Wed Dec 2 19:48:38 2009 -0200

    Changed from binary literal to int to support python 2.5 and older.

 src/gui/widgets/timeline.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/widgets/timeline.py b/src/gui/widgets/timeline.py
index 31333f6..94414a5 100644
--- a/src/gui/widgets/timeline.py
+++ b/src/gui/widgets/timeline.py
@@ -13,9 +13,9 @@ import warnings
 debug = False
 
 class Bullet(object):
-    OVERDUE = 0b001
-    TO_BE_PAID = 0b010
-    PAID = 0b100
+    OVERDUE = int('001', 2)
+    TO_BE_PAID = int('010', 2)
+    PAID = int('100', 2)
 
     debug = False
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]