doc/api/libbabeltrace2/DoxygenLayout.xml: use `topics` tab
[babeltrace.git] / src / bindings / python / bt2 / bt2 / trace.py
index 5cbe82c64d6eda6f1e996a2b2071ede0bdab4cd8..a7038b2880757ec0f713f36eac8196be853a14bf 100644 (file)
@@ -2,16 +2,17 @@
 #
 # Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
 
-from bt2 import native_bt
-from bt2 import object as bt2_object
-from bt2 import utils as bt2_utils
+import uuid as uuidp
+import functools
 import collections.abc
+
+from bt2 import error as bt2_error
+from bt2 import utils as bt2_utils
 from bt2 import value as bt2_value
+from bt2 import object as bt2_object
 from bt2 import stream as bt2_stream
+from bt2 import native_bt
 from bt2 import stream_class as bt2_stream_class
-import bt2
-import functools
-import uuid as uuidp
 
 
 def _bt2_trace_class():
@@ -246,7 +247,7 @@ class _Trace(_TraceConst):
             )
 
         if stream_ptr is None:
-            raise bt2._MemoryError("cannot create stream object")
+            raise bt2_error._MemoryError("cannot create stream object")
 
         stream = bt2_stream._Stream._create_from_ptr(stream_ptr)
 
This page took 0.024848 seconds and 4 git commands to generate.