diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-02 13:12:51 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:13:29 +0100 |
| commit | 90e7feeb6485fe695ae26e03b10c23c8296607e9 (patch) | |
| tree | bb5643bea7ac92733f7fc62bd5a33d608730328a /scripts/tiny/ksize.py | |
| parent | f6f10858e5464445016cd4eff20878804d4cb858 (diff) | |
| download | poky-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/tiny/ksize.py')
| -rwxr-xr-x | 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 54b71f8e07..587c93038c 100755 --- a/scripts/tiny/ksize.py +++ b/scripts/tiny/ksize.py | |||
| @@ -28,8 +28,6 @@ import sys | |||
| 28 | import getopt | 28 | import getopt |
| 29 | import os | 29 | import os |
| 30 | from subprocess import * | 30 | from subprocess import * |
| 31 | from string import join | ||
| 32 | |||
| 33 | 31 | ||
| 34 | def usage(): | 32 | def 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) |
