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>
This commit is contained in:
parent
f6f10858e5
commit
90e7feeb64
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue