Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: test/linux/ldflags-duplicates/check-ldflags.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/linux/ldflags-duplicates/check-ldflags.py
diff --git a/test/linux/ldflags-duplicates/check-ldflags.py b/test/linux/ldflags-duplicates/check-ldflags.py
index 0515da95e434bb8e3376d83ef68fe3a50bc46c74..0011cdcc51737da8578a0a46029980d8cd63a34a 100755
--- a/test/linux/ldflags-duplicates/check-ldflags.py
+++ b/test/linux/ldflags-duplicates/check-ldflags.py
@@ -8,17 +8,19 @@
Verifies duplicate ldflags are not removed.
"""
+from __future__ import print_function
+
import sys
def CheckContainsFlags(args, substring):
if args.find(substring) is -1:
- print 'ERROR: Linker arguments "%s" are missing in "%s"' % (substring, args)
+ print('ERROR: Linker arguments "%s" are missing in "%s"' % (substring, args))
return False;
return True;
if __name__ == '__main__':
args = " ".join(sys.argv)
- print "args = " +args
+ print("args = " +args)
if not CheckContainsFlags(args, 'lib1.a -Wl,--no-whole-archive') \
or not CheckContainsFlags(args, 'lib2.a -Wl,--no-whole-archive'):
sys.exit(1);

Powered by Google App Engine
This is Rietveld 408576698