From: Simon Marchi Date: Mon, 2 Dec 2019 16:25:30 +0000 (-0500) Subject: bt2: remove ptr parameter of _Error.__init__ X-Git-Tag: v2.0.0~51 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=9aa65e32a270d2c77ae5cf1511c4975f713e333a bt2: remove ptr parameter of _Error.__init__ It isn't used. We never pass a bt_error pointer when constructing an _Error, the constructor of _Error always takes the bt_error from the current thread. Change-Id: I3c5920afe217f3b2067f9fb397b8ef8069d71b11 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2555 Tested-by: jenkins --- diff --git a/src/bindings/python/bt2/bt2/error.py b/src/bindings/python/bt2/bt2/error.py index 77358683..4e3e53f0 100644 --- 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. """ - 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()