projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove `skip-string-normalization` in Python formatter config
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
port.py
diff --git
a/src/bindings/python/bt2/bt2/port.py
b/src/bindings/python/bt2/bt2/port.py
index 4206b3f0910694556372c3e9b6f23e54c122e60b..0d6484782b7f710698189c4d1d23e5083b1e0650 100644
(file)
--- 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:
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)
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:
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)
return cls._create_from_ptr_and_get_ref(ptr)
This page took
0.023675 seconds
and
4
git commands to generate.