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

Unified Diff: test/ios/gyptest-app-ios.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/ios/gyptest-app-ios.py
diff --git a/test/ios/gyptest-app-ios.py b/test/ios/gyptest-app-ios.py
index f9052549d0bbac325dd4d557d38995ef715288d8..81faa1b0d1e4f68e68fd101da868cd26c1dbd254 100755
--- a/test/ios/gyptest-app-ios.py
+++ b/test/ios/gyptest-app-ios.py
@@ -8,6 +8,8 @@
Verifies that ios app bundles are built correctly.
"""
+from __future__ import print_function
+
import TestGyp
import subprocess
@@ -17,13 +19,13 @@ def CheckFileXMLPropertyList(file):
output = subprocess.check_output(['file', file])
# The double space after XML is intentional.
if not 'XML document text' in output:
- print 'File: Expected XML document text, got %s' % output
+ print('File: Expected XML document text, got %s' % output)
test.fail_test()
def CheckFileBinaryPropertyList(file):
output = subprocess.check_output(['file', file])
if not 'Apple binary property list' in output:
- print 'File: Expected Apple binary property list, got %s' % output
+ print('File: Expected Apple binary property list, got %s' % output)
test.fail_test()
if sys.platform == 'darwin':

Powered by Google App Engine
This is Rietveld 408576698