projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Multi-trace stream intersection test
[babeltrace.git]
/
bindings
/
python
/
examples
/
example-api-test.py
diff --git
a/bindings/python/examples/example-api-test.py
b/bindings/python/examples/example-api-test.py
index 5410d2c26a3112331ffe94a3528af20a8740f6e2..1bdea6cc7eec63a80b2b848f2cd858469af25892 100644
(file)
--- a/
bindings/python/examples/example-api-test.py
+++ b/
bindings/python/examples/example-api-test.py
@@
-29,14
+29,15
@@
# to partially test the api.
import sys
# to partially test the api.
import sys
-from babeltrace import *
+import babeltrace.reader
+
# Check for path arg:
if len(sys.argv) < 2:
raise TypeError("Usage: python example-api-test.py path/to/file")
# Create TraceCollection and add trace:
# Check for path arg:
if len(sys.argv) < 2:
raise TypeError("Usage: python example-api-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.024752 seconds
and
4
git commands to generate.