diff options
author | Anthony King <anthonydking@slimroms.net> | 2015-11-03 00:23:11 +0000 |
---|---|---|
committer | Tom Powell <tpowell@cyngn.com> | 2016-01-04 11:09:01 -0800 |
commit | c713d764c53e439352e79076eeecdbed9b2ccd6c (patch) | |
tree | ec2c6e1f7d912a03442405d8fa28cf23de9d889b /tools/compare_fileslist.py | |
parent | 12b55e8654520aac7cb466e7c149a11a48cc3b0e (diff) | |
download | build-c713d764c53e439352e79076eeecdbed9b2ccd6c.zip build-c713d764c53e439352e79076eeecdbed9b2ccd6c.tar.gz build-c713d764c53e439352e79076eeecdbed9b2ccd6c.tar.bz2 |
py3: update all the things
Change-Id: I5e11b46b7c2f7f8760d6c0e713ca99c1e88b7cd3
Diffstat (limited to 'tools/compare_fileslist.py')
-rwxr-xr-x | tools/compare_fileslist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/compare_fileslist.py b/tools/compare_fileslist.py index 148d740..64ad3ae 100755 --- a/tools/compare_fileslist.py +++ b/tools/compare_fileslist.py @@ -17,7 +17,7 @@ from __future__ import print_function -import cgi, os, string, sys +import cgi, os, sys def iteritems(obj): @@ -42,10 +42,10 @@ def main(argv): data = {} index = 0 for input in inputs: - f = file(input, "r") + f = open(input) lines = f.readlines() f.close() - lines = map(string.split, lines) + lines = [l.strip() for l in lines] lines = [(x_y[1],int(x_y[0])) for x_y in lines] for fn,sz in lines: if fn not in data: |