projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: reverse order of printed causes in _Error.__str__
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
error.py
diff --git
a/src/bindings/python/bt2/bt2/error.py
b/src/bindings/python/bt2/bt2/error.py
index 773586833b78c8cb81cdc58172716e72317b655c..a50827a85b3889d3c86b4fb780d20df4d20b0c0a 100644
(file)
--- a/
src/bindings/python/bt2/bt2/error.py
+++ b/
src/bindings/python/bt2/bt2/error.py
@@
-162,7
+162,7
@@
class _Error(Exception, abc.Sequence):
the ERROR or MEMORY_ERROR status codes.
"""
the ERROR or MEMORY_ERROR status codes.
"""
- def __init__(self, msg
, ptr=None
):
+ def __init__(self, msg):
super().__init__(msg)
# Steal the current thread's error.
self._ptr = native_bt.current_thread_take_error()
super().__init__(msg)
# Steal the current thread's error.
self._ptr = native_bt.current_thread_take_error()
@@
-213,6
+213,6
@@
class _Error(Exception, abc.Sequence):
def __str__(self):
s = self._msg + '\n'
def __str__(self):
s = self._msg + '\n'
- for c in
self
:
+ for c in
reversed(self)
:
s += str(c) + '\n'
return s
s += str(c) + '\n'
return s
This page took
0.023974 seconds
and
4
git commands to generate.