Python: writer.IntegerBase: remove redundant prefixes
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 10 Dec 2014 22:39:01 +0000 (17:39 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Feb 2015 21:16:15 +0000 (16:16 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/writer.py

index f1525214511127876ab4f54ca7b6d2a21c121327..3d4797eba28a9f399cdb20058a1f0664dc0998bf 100644 (file)
@@ -301,18 +301,25 @@ class IntegerBase:
     """
 
     #: Unknown
-    INTEGER_BASE_UNKNOWN = -1
+    UNKNOWN = -1
 
     #: Binary
-    INTEGER_BASE_BINARY = 2
+    BIN = 2
 
     #: Octal
-    INTEGER_BASE_OCTAL = 8
+    OCT = 8
 
     #: Decimal
-    INTEGER_BASE_DECIMAL = 10
+    DEC = 10
 
     #: Hexadecimal
+    HEX = 16
+
+    # keep this for backward compatibility
+    INTEGER_BASE_UNKNOWN = -1
+    INTEGER_BASE_BINARY = 2
+    INTEGER_BASE_OCTAL = 8
+    INTEGER_BASE_DECIMAL = 10
     INTEGER_BASE_HEXADECIMAL = 16
 
 
This page took 0.025511 seconds and 4 git commands to generate.