projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: change some bt2.CreationError usages to ValueError
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
stream_class.py
diff --git
a/bindings/python/bt2/bt2/stream_class.py
b/bindings/python/bt2/bt2/stream_class.py
index f2869cb98cd50f11fbfe0063ea6f242d78ae3390..fa13cb3b83c9b715fc5dc401068a4dac9c984838 100644
(file)
--- a/
bindings/python/bt2/bt2/stream_class.py
+++ b/
bindings/python/bt2/bt2/stream_class.py
@@
-61,12
+61,12
@@
class StreamClass(object._SharedObject, collections.abc.Mapping):
payload_field_class=None):
if self.assigns_automatic_event_class_id:
if id is not None:
payload_field_class=None):
if self.assigns_automatic_event_class_id:
if id is not None:
- raise
bt2.Creation
Error('id provided, but stream class assigns automatic event class ids')
+ raise
Value
Error('id provided, but stream class assigns automatic event class ids')
ec_ptr = native_bt.event_class_create(self._ptr)
else:
if id is None:
ec_ptr = native_bt.event_class_create(self._ptr)
else:
if id is None:
- raise
bt2.Creation
Error('id not provided, but stream class does not assign automatic event class ids')
+ raise
Value
Error('id not provided, but stream class does not assign automatic event class ids')
utils._check_uint64(id)
ec_ptr = native_bt.event_class_create_with_id(self._ptr, id)
utils._check_uint64(id)
ec_ptr = native_bt.event_class_create_with_id(self._ptr, id)
This page took
0.023351 seconds
and
4
git commands to generate.