In python 3 print statement is not supported, so we should use
only print() functions.
Fixes bug
1226943
Change-Id: I7b2e4d52fe9050f6a67c44e4cc1237a15ea90b23
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)
+from __future__ import print_function
+
import gettext
import os
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])