Use built-in print() instead of print statement
In python 3 print statement is not supported, so we should use only print() functions. Fixes bug 1226943 Change-Id: I7b2e4d52fe9050f6a67c44e4cc1237a15ea90b23
This commit is contained in:
parent
27d658a57f
commit
765e86e72f
@ -512,7 +512,7 @@ def main():
|
||||
print(_("\nOpenStack Cinder version: %(version)s\n") %
|
||||
{'version': version.version_string()})
|
||||
print(script_name + " category action [<args>]")
|
||||
print (_("Available categories:"))
|
||||
print(_("Available categories:"))
|
||||
for category in CATEGORIES:
|
||||
print("\t%s" % category)
|
||||
sys.exit(2)
|
||||
|
@ -1,3 +1,5 @@
|
||||
from __future__ import print_function
|
||||
|
||||
import gettext
|
||||
import os
|
||||
|
||||
@ -7,6 +9,6 @@ from cinder import utils
|
||||
|
||||
|
||||
def setup(app):
|
||||
print "**Autodocumenting from %s" % os.path.abspath(os.curdir)
|
||||
print("**Autodocumenting from %s" % os.path.abspath(os.curdir))
|
||||
rv = utils.execute('./doc/generate_autodoc_index.sh')
|
||||
print rv[0]
|
||||
print(rv[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user