projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: standardize intra-bt2 imports
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
stream.py
diff --git
a/src/bindings/python/bt2/bt2/stream.py
b/src/bindings/python/bt2/bt2/stream.py
index cd456e9e210eb984f66b8442428d55fee0af7ba9..dae698d6abc70a531bb34d6ac8a1087ec64af50b 100644
(file)
--- a/
src/bindings/python/bt2/bt2/stream.py
+++ b/
src/bindings/python/bt2/bt2/stream.py
@@
-2,7
+2,8
@@
#
# Copyright (c) 2016-2017 Philippe Proulx <pproulx@efficios.com>
#
# Copyright (c) 2016-2017 Philippe Proulx <pproulx@efficios.com>
-from bt2 import native_bt, utils
+from bt2 import native_bt
+from bt2 import utils as bt2_utils
from bt2 import object as bt2_object
from bt2 import packet as bt2_packet
from bt2 import stream_class as bt2_stream_class
from bt2 import object as bt2_object
from bt2 import packet as bt2_packet
from bt2 import stream_class as bt2_stream_class
@@
-89,7
+90,7
@@
class _Stream(_StreamConst):
def _user_attributes(self, user_attributes):
value = bt2_value.create_value(user_attributes)
def _user_attributes(self, user_attributes):
value = bt2_value.create_value(user_attributes)
- utils._check_type(value, bt2_value.MapValue)
+
bt2_
utils._check_type(value, bt2_value.MapValue)
native_bt.stream_set_user_attributes(self._ptr, value._ptr)
_user_attributes = property(
native_bt.stream_set_user_attributes(self._ptr, value._ptr)
_user_attributes = property(
@@
-97,7
+98,7
@@
class _Stream(_StreamConst):
)
def _name(self, name):
)
def _name(self, name):
- utils._check_str(name)
+
bt2_
utils._check_str(name)
native_bt.stream_set_name(self._ptr, name)
_name = property(fget=_StreamConst.name.fget, fset=_name)
native_bt.stream_set_name(self._ptr, name)
_name = property(fget=_StreamConst.name.fget, fset=_name)
This page took
0.024694 seconds
and
4
git commands to generate.