projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement __repr__ for _StringField
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
fields.py
diff --git
a/bindings/python/bt2/bt2/fields.py
b/bindings/python/bt2/bt2/fields.py
index 2e2796c901c127b8b60ad3287f18fc60db802948..0bfbc58f8aaa296bac8f44ac78041a98961f92fa 100644
(file)
--- a/
bindings/python/bt2/bt2/fields.py
+++ b/
bindings/python/bt2/bt2/fields.py
@@
-426,6
+426,9
@@
class _StringField(_Field, collections.abc.Sequence):
def __bool__(self):
return bool(self._value)
+ def __repr__(self):
+ return repr(self._value)
+
def __str__(self):
return self._value
This page took
0.022853 seconds
and
4
git commands to generate.