X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Futils.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Futils.py;h=d7e99ca60156f2c4d6f869e346adb46d531c960d;hp=b53032d91cf7455fda5b710b74e99fb21f3b6d30;hb=768f9bcbf4b5acd09dda85ab32c0ea30d8826136;hpb=53a47a3f01d6bfa4e940e1943e7645cb89d04cd5 diff --git a/src/bindings/python/bt2/bt2/utils.py b/src/bindings/python/bt2/bt2/utils.py index b53032d9..d7e99ca6 100644 --- a/src/bindings/python/bt2/bt2/utils.py +++ b/src/bindings/python/bt2/bt2/utils.py @@ -36,7 +36,7 @@ def _check_type(o, expected_type): def _is_in_int64_range(v): assert isinstance(v, int) - return v >= -(2 ** 63) and v <= (2 ** 63 - 1) + return v >= -(2**63) and v <= (2**63 - 1) def _is_int64(v): @@ -48,7 +48,7 @@ def _is_int64(v): def _is_in_uint64_range(v): assert isinstance(v, int) - return v >= 0 and v <= (2 ** 64 - 1) + return v >= 0 and v <= (2**64 - 1) def _is_uint64(v):