From 765e86e72f59994e029ccd1ad5ec3e50170ee128 Mon Sep 17 00:00:00 2001 From: Chang Bo Guo Date: Wed, 18 Sep 2013 00:00:17 -0700 Subject: [PATCH] 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 --- bin/cinder-manage | 2 +- doc/ext/cinder_autodoc.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cinder-manage b/bin/cinder-manage index 3c05d779f..76afaf6b5 100755 --- a/bin/cinder-manage +++ b/bin/cinder-manage @@ -512,7 +512,7 @@ def main(): print(_("\nOpenStack Cinder version: %(version)s\n") % {'version': version.version_string()}) print(script_name + " category action []") - print (_("Available categories:")) + print(_("Available categories:")) for category in CATEGORIES: print("\t%s" % category) sys.exit(2) diff --git a/doc/ext/cinder_autodoc.py b/doc/ext/cinder_autodoc.py index a778f4a52..a6b7d6853 100644 --- a/doc/ext/cinder_autodoc.py +++ b/doc/ext/cinder_autodoc.py @@ -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]) -- 2.45.2