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=393f7ed883ec94f651355b7250d02601b190ff1f;hp=d7e99ca60156f2c4d6f869e346adb46d531c960d;hb=f5567ea88d172767b34373bc6e402da8bfd85ef8;hpb=419d8c49bd978a59b8a0619d83cb6ba26b18f970 diff --git a/src/bindings/python/bt2/bt2/utils.py b/src/bindings/python/bt2/bt2/utils.py index d7e99ca6..393f7ed8 100644 --- a/src/bindings/python/bt2/bt2/utils.py +++ b/src/bindings/python/bt2/bt2/utils.py @@ -63,9 +63,9 @@ def _check_int64(v, msg=None): if not _is_in_int64_range(v): if msg is None: - msg = 'expecting a signed 64-bit integral value' + msg = "expecting a signed 64-bit integral value" - msg += ' (got {})'.format(v) + msg += " (got {})".format(v) raise ValueError(msg) @@ -74,9 +74,9 @@ def _check_uint64(v, msg=None): if not _is_in_uint64_range(v): if msg is None: - msg = 'expecting an unsigned 64-bit integral value' + msg = "expecting an unsigned 64-bit integral value" - msg += ' (got {})'.format(v) + msg += " (got {})".format(v) raise ValueError(msg) @@ -92,7 +92,7 @@ def _check_alignment(a): _check_uint64(a) if not _is_pow2(a): - raise ValueError('{} is not a power of two'.format(a)) + raise ValueError("{} is not a power of two".format(a)) def _check_log_level(log_level):