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
/
trace.py
diff --git
a/bindings/python/bt2/bt2/trace.py
b/bindings/python/bt2/bt2/trace.py
index aa2757c0c170bc3fca77a07b616efaaf9088262c..ba7b89d8c57717696601705c7a350c25f8a243c1 100644
(file)
--- a/
bindings/python/bt2/bt2/trace.py
+++ b/
bindings/python/bt2/bt2/trace.py
@@
-79,12
+79,12
@@
class Trace(object._SharedObject, collections.abc.Mapping):
if stream_class.assigns_automatic_stream_id:
if id is not None:
if stream_class.assigns_automatic_stream_id:
if id is not None:
- raise
bt2.Creation
Error("id provided, but stream class assigns automatic stream ids")
+ raise
Value
Error("id provided, but stream class assigns automatic stream ids")
stream_ptr = native_bt.stream_create(stream_class._ptr, self._ptr)
else:
if id is None:
stream_ptr = native_bt.stream_create(stream_class._ptr, self._ptr)
else:
if id is None:
- raise
bt2.Creation
Error("id not provided, but stream class does not assign automatic stream ids")
+ raise
Value
Error("id not provided, but stream class does not assign automatic stream ids")
utils._check_uint64(id)
stream_ptr = native_bt.stream_create_with_id(stream_class._ptr, self._ptr, id)
utils._check_uint64(id)
stream_ptr = native_bt.stream_create_with_id(stream_class._ptr, self._ptr, id)
This page took
0.023742 seconds
and
4
git commands to generate.