From: Philippe Proulx Date: Sat, 6 Dec 2014 00:42:06 +0000 (-0500) Subject: Python: bt: do not expose ClockType X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8f52f3844fc54e0b48566c8d6d76ec796cac0e35;p=deliverable%2Fbabeltrace.git Python: bt: do not expose ClockType Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/bindings/python/bt.py b/bindings/python/bt.py index 047e2f003..7605b5a74 100644 --- a/bindings/python/bt.py +++ b/bindings/python/bt.py @@ -220,7 +220,7 @@ def print_format_list(babeltrace_file): # Based on enum bt_clock_type in clock-type.h -class ClockType: +class _ClockType: CLOCK_CYCLES = 0 CLOCK_REAL = 1 @@ -257,7 +257,7 @@ class TraceHandle: return nbt._bt_trace_handle_get_timestamp_begin(self._trace_collection._tc, self._id, - ClockType.CLOCK_REAL) + _ClockType.CLOCK_REAL) @property def timestamp_end(self): @@ -265,7 +265,7 @@ class TraceHandle: return nbt._bt_trace_handle_get_timestamp_end(self._trace_collection._tc, self._id, - ClockType.CLOCK_REAL) + _ClockType.CLOCK_REAL) @property def events(self):