[gnome-continuous-yocto/gnomeostree-3.28-rocko: 722/8267] scripts/pybootchart: Fix print statement



commit df963f54f121938c6bec66a6bb1a1776617a3192
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   Fri Jun 3 14:06:09 2016 +0100

    scripts/pybootchart: Fix print statement
    
    This was broken with the python3 fixes.
    
    (From OE-Core rev: 0eadd008d08f9a6bb17a1f641b4735d0d2012580)
    
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/pybootchartgui/pybootchartgui/main.py.in |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/scripts/pybootchartgui/pybootchartgui/main.py.in 
b/scripts/pybootchartgui/pybootchartgui/main.py.in
index af26bd2..a954b12 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]