bt2: remove ptr parameter of _Error.__init__
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Dec 2019 16:25:30 +0000 (11:25 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Jan 2020 20:15:24 +0000 (15:15 -0500)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2555
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/error.py

index 773586833b78c8cb81cdc58172716e72317b655c..4e3e53f0314f7a7c5331d97cec45374ed3f48f46 100644 (file)
@@ -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()
This page took 0.024445 seconds and 4 git commands to generate.