projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python: examples: import explicit BT modules
[babeltrace.git]
/
bindings
/
python
/
examples
/
sequence_test.py
diff --git
a/bindings/python/examples/sequence_test.py
b/bindings/python/examples/sequence_test.py
index 8bd2c749c026a8f9266683c12915e4ad05fcc5c4..e9116ced652080bb02cb55f7b02284491d1cd87c 100644
(file)
--- a/
bindings/python/examples/sequence_test.py
+++ b/
bindings/python/examples/sequence_test.py
@@
-31,14
+31,15
@@
# to partially test the sequence API
import sys
# to partially test the sequence API
import sys
-from babeltrace import *
+import babeltrace.reader
+
# Check for path arg:
if len(sys.argv) < 2:
raise TypeError("Usage: sequence_test.py path/to/file")
# Create TraceCollection and add trace:
# Check for path arg:
if len(sys.argv) < 2:
raise TypeError("Usage: sequence_test.py path/to/file")
# Create TraceCollection and add trace:
-traces = TraceCollection()
+traces =
babeltrace.reader.
TraceCollection()
trace_handle = traces.add_trace(sys.argv[1], "ctf")
if trace_handle is None:
raise IOError("Error adding trace")
trace_handle = traces.add_trace(sys.argv[1], "ctf")
if trace_handle is None:
raise IOError("Error adding trace")
This page took
0.022194 seconds
and
4
git commands to generate.