lib: add bt_{graph,query_executor}_add_interrupter()
[babeltrace.git] / src / bindings / python / bt2 / bt2 / __init__.py.in
index 0faede10cc664ed514f54099296e08d081e1b55c..01c87e51c238f932ccaf16803dccf6e019a2d64b 100644 (file)
@@ -23,6 +23,7 @@
 __version__ = '@PACKAGE_VERSION@'
 
 
+from bt2.interrupter import *
 from bt2.clock_class import *
 from bt2.clock_snapshot import *
 from bt2.component import *
@@ -37,16 +38,20 @@ from bt2.component import _UserSinkComponent
 from bt2.component import _UserSourceComponent
 from bt2.connection import *
 from bt2.connection import _Connection
+from bt2.error import *
+from bt2.error import _Error
 from bt2.event import _Event
 from bt2.event_class import *
 from bt2.field_class import *
 from bt2.field_path import *
 from bt2.field import *
 from bt2.graph import *
+from bt2.integer_range_set import *
 from bt2.logging import *
 from bt2.message import *
 from bt2.message import _DiscardedEventsMessage
 from bt2.message import _DiscardedPacketsMessage
+from bt2.message import _EventMessage
 from bt2.message_iterator import *
 from bt2.message_iterator import _UserMessageIterator
 from bt2.packet import _Packet
@@ -63,22 +68,17 @@ from bt2.value import *
 from bt2.value import _Value
 from bt2.value import _IntegerValue
 from bt2.clock_snapshot import _UnknownClockSnapshot
-from bt2.clock_snapshot import _InfiniteClockSnapshot
 
 
-class Error(Exception):
-    pass
-
+class _MemoryError(_Error):
+    '''Raised when an operation fails due to memory issues.'''
 
-class CreationError(Error):
-    '''Raised when object creation fails due to memory issues.'''
 
-
-class InvalidObject(Error):
+class InvalidObject(Exception):
     pass
 
 
-class InvalidParams(Error):
+class InvalidParams(Exception):
     pass
 
 
@@ -86,10 +86,6 @@ class OverflowError(OverflowError):
     pass
 
 
-class Unsupported(Exception):
-    pass
-
-
 class TryAgain(Exception):
     pass
 
@@ -98,19 +94,7 @@ class Stop(StopIteration):
     pass
 
 
-class IncompleteUserClass(Error):
-    pass
-
-
-class Canceled(Exception):
-    pass
-
-
-class NonexistentClockSnapshot(Error):
-    pass
-
-
-class LoadingError(Error):
+class IncompleteUserClass(Exception):
     pass
 
 
@@ -125,8 +109,12 @@ def _init_and_register_exit():
     import atexit
 
     atexit.register(_native_bt.bt2_cc_exit_handler)
-    version = (_native_bt.version_get_major(), _native_bt.version_get_minor(),
-               _native_bt.version_get_patch(), _native_bt.version_get_extra())
+    version = (
+        _native_bt.version_get_major(),
+        _native_bt.version_get_minor(),
+        _native_bt.version_get_patch(),
+        _native_bt.version_get_extra(),
+    )
     _native_bt.bt2_cc_init_from_bt2()
 
 
This page took 0.027166 seconds and 4 git commands to generate.