X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ferror.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ferror.py;h=e07a3f9002d1cb8c9a5fc32660c70e294e3d51ae;hp=a067345187c3a646d35f1dc5eda93ebc66ce2b33;hb=f5567ea88d172767b34373bc6e402da8bfd85ef8;hpb=419d8c49bd978a59b8a0619d83cb6ba26b18f970 diff --git a/src/bindings/python/bt2/bt2/error.py b/src/bindings/python/bt2/bt2/error.py index a0673451..e07a3f90 100644 --- a/src/bindings/python/bt2/bt2/error.py +++ b/src/bindings/python/bt2/bt2/error.py @@ -13,9 +13,9 @@ class ComponentClassType: _COMPONENT_CLASS_TYPE_TO_STR = { - native_bt.COMPONENT_CLASS_TYPE_SOURCE: 'source', - native_bt.COMPONENT_CLASS_TYPE_FILTER: 'filter', - native_bt.COMPONENT_CLASS_TYPE_SINK: 'sink', + native_bt.COMPONENT_CLASS_TYPE_SOURCE: "source", + native_bt.COMPONENT_CLASS_TYPE_FILTER: "filter", + native_bt.COMPONENT_CLASS_TYPE_SINK: "sink", } @@ -174,7 +174,7 @@ class _Error(Exception, abc.Sequence): assert self._ptr is not None self._msg = msg - self._str = msg + '\n' + native_bt.bt2_format_bt_error(self._ptr) + self._str = msg + "\n" + native_bt.bt2_format_bt_error(self._ptr) # Read everything we might need from the error pointer, so we don't # depend on it. It's possible for the user to keep an Error object