Skip to content

Commit

Permalink
Use built-in print() instead of print statement
Browse files Browse the repository at this point in the history
In python 3 print statement is not supported, so we should use
only print() functions.

Fixes bug 1226943

Change-Id: I7b2e4d52fe9050f6a67c44e4cc1237a15ea90b23
  • Loading branch information
glongwave committed Sep 18, 2013
1 parent 27d658a commit 765e86e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/cinder-manage
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions doc/ext/cinder_autodoc.py
@@ -1,3 +1,5 @@
from __future__ import print_function

import gettext
import os

Expand All @@ -7,6 +9,6 @@


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])

0 comments on commit 765e86e

Please sign in to comment.