X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fexamples%2Fsequence_test.py;fp=bindings%2Fpython%2Fexamples%2Fsequence_test.py;h=e9116ced652080bb02cb55f7b02284491d1cd87c;hp=8bd2c749c026a8f9266683c12915e4ad05fcc5c4;hb=62c4fc67ea53c46da135f0e91cbd31f722817289;hpb=be5a4e673f4603dd4867e945ee6054de41be78c2 diff --git a/bindings/python/examples/sequence_test.py b/bindings/python/examples/sequence_test.py index 8bd2c749..e9116ced 100644 --- 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 -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: -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")