From 1d0e86240907949df4af3129ae302b7f42d30879 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 5 Jul 2019 10:58:45 -0400 Subject: [PATCH] bt2: remove probing of BABELTRACE_PYTHON_BT2_NO_TRACEBACK env var This was used previously when handling exceptions thrown by user code, to decide whether we printed exceptions or not. Nowadays, we let exceptions propagate to the native code, which logs it. I believe we can remove this. Change-Id: I14adae265c83a169d176dda9d83d4d05fcd26edc Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/1636 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/bindings/python/bt2/bt2/component.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bindings/python/bt2/bt2/component.py b/src/bindings/python/bt2/bt2/component.py index b8026cc28..55f07f49a 100644 --- a/src/bindings/python/bt2/bt2/component.py +++ b/src/bindings/python/bt2/bt2/component.py @@ -31,10 +31,6 @@ import bt2 import os -_env_var = os.environ.get('BABELTRACE_PYTHON_BT2_NO_TRACEBACK') -_NO_PRINT_TRACEBACK = _env_var == '1' - - # This class wraps a component class pointer. This component class could # have been created by Python code, but since we only have the pointer, # we can only wrap it in a generic way and lose the original Python -- 2.39.5