X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fevent.py;h=baec2aa57b429c2f8a19af4abc9dd6f26acbd9e4;hb=e5914347c8eea0f26c07348d0ac64dbe020de44a;hp=81215a2069a1d398f0c61932a8d1f3a3a9868241;hpb=0a205e0153be49774ea297ead783c728db86dc0b;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/event.py b/src/bindings/python/bt2/bt2/event.py index 81215a20..baec2aa5 100644 --- a/src/bindings/python/bt2/bt2/event.py +++ b/src/bindings/python/bt2/bt2/event.py @@ -2,7 +2,9 @@ # # Copyright (c) 2016-2017 Philippe Proulx -from bt2 import native_bt, object, utils +from bt2 import native_bt +from bt2 import object as bt2_object +from bt2 import utils as bt2_utils from bt2 import event_class as bt2_event_class from bt2 import packet as bt2_packet from bt2 import stream as bt2_stream @@ -10,7 +12,7 @@ from bt2 import field as bt2_field import collections.abc -class _EventConst(object._UniqueObject, collections.abc.Mapping): +class _EventConst(bt2_object._UniqueObject, collections.abc.Mapping): _borrow_class_ptr = staticmethod(native_bt.event_borrow_class_const) _borrow_packet_ptr = staticmethod(native_bt.event_borrow_packet_const) _borrow_stream_ptr = staticmethod(native_bt.event_borrow_stream_const) @@ -90,7 +92,7 @@ class _EventConst(object._UniqueObject, collections.abc.Mapping): ) def __getitem__(self, key): - utils._check_str(key) + bt2_utils._check_str(key) payload_field = self.payload_field if payload_field is not None and key in payload_field: