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); |