X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2F__init__.py.in;fp=bindings%2Fpython%2Fbt2%2Fbt2%2F__init__.py.in;h=0000000000000000000000000000000000000000;hp=f80cf658622ed876a13942d9f416449d1698b4de;hb=578e048b5debf169e286e5b5cc747b5d6c16886d;hpb=68b66a256a54d32992dfefeaad11eea88b7df234 diff --git a/bindings/python/bt2/bt2/__init__.py.in b/bindings/python/bt2/bt2/__init__.py.in deleted file mode 100644 index f80cf658..00000000 --- a/bindings/python/bt2/bt2/__init__.py.in +++ /dev/null @@ -1,133 +0,0 @@ -# The MIT License (MIT) -# -# Copyright (c) 2017 Philippe Proulx -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -__version__ = '@PACKAGE_VERSION@' - - -from bt2.clock_class import * -from bt2.clock_snapshot import * -from bt2.component import * -from bt2.component import _FilterComponent -from bt2.component import _GenericFilterComponentClass -from bt2.component import _GenericSinkComponentClass -from bt2.component import _GenericSourceComponentClass -from bt2.component import _SinkComponent -from bt2.component import _SourceComponent -from bt2.component import _UserFilterComponent -from bt2.component import _UserSinkComponent -from bt2.component import _UserSourceComponent -from bt2.connection import * -from bt2.connection import _Connection -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.logging import * -from bt2.message import * -from bt2.message import _DiscardedEventsMessage -from bt2.message import _DiscardedPacketsMessage -from bt2.message_iterator import * -from bt2.message_iterator import _UserMessageIterator -from bt2.packet import _Packet -from bt2.plugin import * -from bt2.port import * -from bt2.py_plugin import * -from bt2.query_executor import * -from bt2.stream import _Stream -from bt2.stream_class import * -from bt2.trace import * -from bt2.trace_class import * -from bt2.trace_collection_message_iterator import * -from bt2.value import * -from bt2.value import _Value -from bt2.value import _IntegerValue - - -class Error(Exception): - pass - - -class CreationError(Error): - '''Raised when object creation fails due to memory issues.''' - - -class InvalidQueryObject(Error): - pass - - -class InvalidQueryParams(Error): - pass - - -class TryAgain(Exception): - pass - - -class Stop(StopIteration): - pass - - -class PortConnectionRefused(Exception): - pass - - -class IncompleteUserClass(Error): - pass - - -class GraphCanceled(Exception): - pass - - -class QueryExecutorCanceled(Exception): - pass - - -class NonexistentClockSnapshot(Error): - pass - - -class _ListenerHandle: - def __init__(self, listener_id, obj): - self._listener_id = listener_id - self._obj = obj - - -def _init_and_register_exit(): - import bt2.native_bt as _native_bt - import atexit - - atexit.register(_native_bt.py3_cc_exit_handler) - version = (_native_bt.version_get_major(), _native_bt.version_get_minor(), - _native_bt.version_get_patch(), _native_bt.version_get_extra()) - _native_bt.py3_cc_init_from_bt2() - - -_init_and_register_exit() - - -try: - del native_bt -except: - pass