summaryrefslogtreecommitdiff
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-02 11:46:15 +0100
commit10529d8fbc7254523f9749f4b35b07ebcccb6205 (patch)
tree4772c19a7144dd755bf745e24fbbe225b3a09e72 /scripts
parentec3f1759e8b491a44a1fc1ecb6f89919dd30da97 (diff)
downloadopenembedded-core-10529d8fbc7254523f9749f4b35b07ebcccb6205.tar.gz
openembedded-core-10529d8fbc7254523f9749f4b35b07ebcccb6205.tar.bz2
openembedded-core-10529d8fbc7254523f9749f4b35b07ebcccb6205.zip
ksize.py: python3: get rid of strings.join
Used join method instead of strings.join as stings.join doesn't exist in python 3. 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
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)