From b3df7a8f0a8bc192cb7f35c7bc3434b216d874c8 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 10 Dec 2014 17:39:01 -0500 Subject: [PATCH] Python: writer.IntegerBase: remove redundant prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- bindings/python/writer.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/bindings/python/writer.py b/bindings/python/writer.py index f1525214..3d4797eb 100644 --- a/bindings/python/writer.py +++ b/bindings/python/writer.py @@ -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 -- 2.34.1