diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-09-27 16:03:50 +0100 |
---|---|---|
committer | sjg <sjg@chromium.org> | 2016-10-09 09:30:32 -0600 |
commit | a920a17b2f418535870788ae81234dc6b8aa6661 (patch) | |
tree | 2986de030de65467a4830c6fafb79d5e142b7729 /tools/patman/patchstream.py | |
parent | 12e5476df33a24ff781e6f78404792e4b8596c28 (diff) | |
download | u-boot-a920a17b2f418535870788ae81234dc6b8aa6661.tar.gz |
patman: Make print statements python 3.x safe
In python 3.x, print must be used as a function call. Convert all print
statements to the function call style, importing from __future__ where
we print with no trailing newline or print to a file object.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patchstream.py')
-rw-r--r-- | tools/patman/patchstream.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 69d5cfb7a8..cd4667f61c 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -480,12 +480,12 @@ def FixPatches(series, fnames): commit.patch = fname result = FixPatch(backup_dir, fname, series, commit) if result: - print '%d warnings for %s:' % (len(result), fname) + print('%d warnings for %s:' % (len(result), fname)) for warn in result: - print '\t', warn + print('\t', warn) print count += 1 - print 'Cleaned %d patches' % count + print('Cleaned %d patches' % count) return series def InsertCoverLetter(fname, series, count): |