summaryrefslogtreecommitdiff
path: root/odoo/cli/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/cli/command.py')
-rw-r--r--odoo/cli/command.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/odoo/cli/command.py b/odoo/cli/command.py
index 75aa392fdfb..2ab042f58e8 100644
--- a/odoo/cli/command.py
+++ b/odoo/cli/command.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import logging
import sys
import os
@@ -26,14 +27,14 @@ class Command(object):
class Help(Command):
"""Display the list of available commands"""
def run(self, args):
- print "Available commands:\n"
+ print("Available commands:\n")
names = commands.keys()
padding = max([len(k) for k in names]) + 2
for k in sorted(names):
name = k.ljust(padding, ' ')
doc = (commands[k].__doc__ or '').strip()
- print " %s%s" % (name, doc)
- print "\nUse '%s <command> --help' for individual command help." % sys.argv[0].split(os.path.sep)[-1]
+ print(" %s%s" % (name, doc))
+ print("\nUse '%s <command> --help' for individual command help." % sys.argv[0].split(os.path.sep)[-1])
def main():
args = sys.argv[1:]