aboutsummaryrefslogtreecommitdiff
path: root/describe.py
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2019-07-22 19:43:21 +0200
committerBu Sun Kim <8822365+busunkim96@users.noreply.github.com>2019-07-22 10:43:21 -0700
commit9fdc2b20a998bbac3eed80595f4be7a001d3e652 (patch)
treec900b65ff8b97af49d855a20f3c822c0949bbe56 /describe.py
parentc977304a1af233058f572787538edafc2ef122e6 (diff)
downloadgoogle-api-python-client-9fdc2b20a998bbac3eed80595f4be7a001d3e652.tar.gz
Use print() function in both Python 2 and Python 3 (#722)
* Use print() function in both Python 2 and Python 3 Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3. * Fix undefined names
Diffstat (limited to 'describe.py')
-rwxr-xr-xdescribe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/describe.py b/describe.py
index eb7a0f1c9..636eb5dee 100755
--- a/describe.py
+++ b/describe.py
@@ -20,6 +20,7 @@ Command-line tool that creates documentation for all APIs listed in discovery.
The documentation is generated from a combination of the discovery document and
the generated API surface itself.
"""
+from __future__ import print_function
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
@@ -354,7 +355,7 @@ def document_api(name, version):
try:
service = build(name, version)
except UnknownApiNameOrVersion as e:
- print 'Warning: {} {} found but could not be built.'.format(name, version)
+ print('Warning: {} {} found but could not be built.'.format(name, version))
return
http = build_http()