[gnome-continuous-yocto/gnomeostree-3.28-rocko: 692/8267] ksize.py: python3: get rid of strings.join



commit 90e7feeb6485fe695ae26e03b10c23c8296607e9
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   Thu Jun 2 13:12:51 2016 +0300

    ksize.py: python3: get rid of strings.join
    
    Used join method instead of strings.join as stings.join
    doesn't exist in python 3.
    
    (From OE-Core rev: 10529d8fbc7254523f9749f4b35b07ebcccb6205)
    
    Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/tiny/ksize.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/scripts/tiny/ksize.py b/scripts/tiny/ksize.py
index 54b71f8..587c930 100755
--- a/scripts/tiny/ksize.py
+++ b/scripts/tiny/ksize.py
@@ -28,8 +28,6 @@ import sys
 import getopt
 import os
 from subprocess import *
-from string import join
-
 
 def usage():
     prog = os.path.basename(sys.argv[0])
@@ -66,7 +64,7 @@ class Report:
 
         p = Popen("ls " + path + "/*.o | grep -v built-in.o",
                   shell=True, stdout=PIPE, stderr=PIPE)
-        glob = join(p.communicate()[0].splitlines())
+        glob = ' '.join(p.communicate()[0].splitlines())
         oreport = Report(glob, path + "/*.o")
         oreport.sizes.title = path + "/*.o"
         r.parts.append(oreport)


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