diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-04-25 13:27:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-25 13:27:54 +0200 |
| commit | 6b9268bd15f8db22855d91849749b879f2d553a1 (patch) | |
| tree | a14ed2a0ff1b4eafb0f94b0dfafcea34187499bf /odoo/cli/start.py | |
| parent | 3cbca4b7348b60eb6cfe3f423983d53dada67862 (diff) | |
[FIX] print statement -> function
In Python 3, ``print`` becomes a builtin function. This is available
in Python 2 by importing the ``print_function`` feature from
``__future__``, the feature is conveniently still available in Python
3 (it just does nothing).
Fixers:
libfuturize.fixes.fix_print_with_import
#8530
Diffstat (limited to 'odoo/cli/start.py')
| -rw-r--r-- | odoo/cli/start.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/cli/start.py b/odoo/cli/start.py index 88df395eab5..c42494b60b1 100644 --- a/odoo/cli/start.py +++ b/odoo/cli/start.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function import argparse import glob import itertools @@ -77,5 +78,5 @@ class Start(Command): main(cmdargs) def die(message, code=1): - print >>sys.stderr, message + print(message, file=sys.stderr) sys.exit(code) |
