From: Richard Purdie Date: Fri, 3 Jun 2016 13:06:09 +0000 (+0100) Subject: scripts/pybootchart: Fix print statement X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eadd008d08f9a6bb17a1f641b4735d0d2012580;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/pybootchart: Fix print statement This was broken with the python3 fixes. Signed-off-by: Richard Purdie --- diff --git a/scripts/pybootchartgui/pybootchartgui/main.py.in b/scripts/pybootchartgui/pybootchartgui/main.py.in index af26bd22961..a954b125da5 100644 --- a/scripts/pybootchartgui/pybootchartgui/main.py.in +++ b/scripts/pybootchartgui/pybootchartgui/main.py.in @@ -147,9 +147,7 @@ def main(argv=None): for time in res[4]: if time is not None: # output as ms - print(time * 10, file=f) - else: - print(file=f) + f.write(time * 10) finally: f.close() filename = _get_filename(options.output)