summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-06-02 13:12:51 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:29 +0100
commit90e7feeb6485fe695ae26e03b10c23c8296607e9 (patch)
treebb5643bea7ac92733f7fc62bd5a33d608730328a /scripts
parentf6f10858e5464445016cd4eff20878804d4cb858 (diff)
downloadpoky-90e7feeb6485fe695ae26e03b10c23c8296607e9.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tiny/ksize.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/tiny/ksize.py b/scripts/tiny/ksize.py
index 54b71f8e07..587c93038c 100755
--- a/scripts/tiny/ksize.py
+++ b/scripts/tiny/ksize.py
@@ -28,8 +28,6 @@ import sys
28import getopt 28import getopt
29import os 29import os
30from subprocess import * 30from subprocess import *
31from string import join
32
33 31
34def usage(): 32def usage():
35 prog = os.path.basename(sys.argv[0]) 33 prog = os.path.basename(sys.argv[0])
@@ -66,7 +64,7 @@ class Report:
66 64
67 p = Popen("ls " + path + "/*.o | grep -v built-in.o", 65 p = Popen("ls " + path + "/*.o | grep -v built-in.o",
68 shell=True, stdout=PIPE, stderr=PIPE) 66 shell=True, stdout=PIPE, stderr=PIPE)
69 glob = join(p.communicate()[0].splitlines()) 67 glob = ' '.join(p.communicate()[0].splitlines())
70 oreport = Report(glob, path + "/*.o") 68 oreport = Report(glob, path + "/*.o")
71 oreport.sizes.title = path + "/*.o" 69 oreport.sizes.title = path + "/*.o"
72 r.parts.append(oreport) 70 r.parts.append(oreport)