X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fport.py;h=0d6484782b7f710698189c4d1d23e5083b1e0650;hp=4206b3f0910694556372c3e9b6f23e54c122e60b;hb=f5567ea88d172767b34373bc6e402da8bfd85ef8;hpb=419d8c49bd978a59b8a0619d83cb6ba26b18f970 diff --git a/src/bindings/python/bt2/bt2/port.py b/src/bindings/python/bt2/bt2/port.py index 4206b3f0..0d648478 100644 --- a/src/bindings/python/bt2/bt2/port.py +++ b/src/bindings/python/bt2/bt2/port.py @@ -15,7 +15,7 @@ def _create_from_const_ptr_and_get_ref(ptr, port_type): cls = _PORT_TYPE_TO_PYCLS.get(port_type, None) if cls is None: - raise TypeError('unknown port type: {}'.format(port_type)) + raise TypeError("unknown port type: {}".format(port_type)) return cls._create_from_ptr_and_get_ref(ptr) @@ -24,7 +24,7 @@ def _create_self_from_ptr_and_get_ref(ptr, port_type): cls = _PORT_TYPE_TO_USER_PYCLS.get(port_type, None) if cls is None: - raise TypeError('unknown port type: {}'.format(port_type)) + raise TypeError("unknown port type: {}".format(port_type)) return cls._create_from_ptr_and_get_ref(ptr)