From 34d5cf2f1bd49ed027313d94e20f778daaf920af Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 2 Dec 2019 11:25:30 -0500 Subject: [PATCH] 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 --- src/bindings/python/bt2/bt2/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.34.1