Python-bindings: Refactor the Event class
[babeltrace.git] / bindings / python / examples / babeltrace_and_lttng.py
index 3e7d57f53627646ec9eb7f7c622412e1402a289e..42ebc85eb3019c5e2579206b8ff36088dfc1a265 100644 (file)
@@ -110,8 +110,7 @@ print("Writing trace file...")
 output = open(out_file, "wt")
 
 for event in traces.events:
-       output.write("TS: {}, {} : {}\n".format(event.get_timestamp(),
-               event.get_cycles(), event.get_name()))
+       output.write("TS: {}, {} : {}\n".format(event.timestamp, event.cycles, event.name))
 
 # Closing file
 output.close()
This page took 0.022868 seconds and 4 git commands to generate.