From: Philippe Proulx Date: Wed, 10 Dec 2014 22:39:01 +0000 (-0500) Subject: Python: writer.IntegerBase: remove redundant prefixes X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b3df7a8f0a8bc192cb7f35c7bc3434b216d874c8;p=deliverable%2Fbabeltrace.git Python: writer.IntegerBase: remove redundant prefixes Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/bindings/python/writer.py b/bindings/python/writer.py index f15252145..3d4797eba 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