summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/catapult_build/appengine_deploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/catapult/catapult_build/appengine_deploy.py')
-rw-r--r--chromium/third_party/catapult/catapult_build/appengine_deploy.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/catapult/catapult_build/appengine_deploy.py b/chromium/third_party/catapult/catapult_build/appengine_deploy.py
index 8c2732eacc8..c8479589df5 100644
--- a/chromium/third_party/catapult/catapult_build/appengine_deploy.py
+++ b/chromium/third_party/catapult/catapult_build/appengine_deploy.py
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from __future__ import absolute_import
+from __future__ import print_function
import os
import subprocess
import sys
@@ -21,7 +23,7 @@ def Deploy(paths, args, version=None):
version = _VersionName()
with temp_deployment_dir.TempDeploymentDir(
paths, use_symlinks=False) as temp_dir:
- print 'Deploying from "%s".' % temp_dir
+ print('Deploying from "%s".' % temp_dir)
# google-cloud-sdk/bin/gcloud is a shell script, which we can't subprocess
# on Windows with shell=False. So, execute the Python script directly.
@@ -30,9 +32,9 @@ def Deploy(paths, args, version=None):
else:
script_path = _FindScriptInPath('gcloud')
if not script_path:
- print 'This script requires the Google Cloud SDK to be in PATH.'
- print 'Install at https://cloud.google.com/sdk and then run'
- print '`gcloud components install app-engine-python`'
+ print('This script requires the Google Cloud SDK to be in PATH.')
+ print('Install at https://cloud.google.com/sdk and then run')
+ print('`gcloud components install app-engine-python`')
sys.exit(1)
subprocess.check_call([script_path, 'app', 'deploy', '--no-promote',