From 07d23bf74b4279b313d8ea03ca9c15b330bdbf0b Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 22 Apr 2013 14:55:51 +0100 Subject: Use print_function __future__ import Rather than continuing to use the old print statement, use the actual print function introduced in python 2.6. See: http://docs.python.org/2/whatsnew/2.6.html#pep-3105-print-as-a-function Change-Id: I059d982d60e13f13e1caf49509c0fe0b18eda723 --- openstack/common/rootwrap/cmd.py | 2 ++ tests/unit/test_processutils.py | 2 ++ tests/unit/test_service.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/openstack/common/rootwrap/cmd.py b/openstack/common/rootwrap/cmd.py index f17f50a..e8f4dd0 100755 --- a/openstack/common/rootwrap/cmd.py +++ b/openstack/common/rootwrap/cmd.py @@ -33,6 +33,8 @@ they are needed, to avoid allowing more than is necessary. """ +from __future__ import print_function + import ConfigParser import os import pwd diff --git a/tests/unit/test_processutils.py b/tests/unit/test_processutils.py index f096cf7..a85ed48 100644 --- a/tests/unit/test_processutils.py +++ b/tests/unit/test_processutils.py @@ -15,6 +15,8 @@ # License for the specific language governing permissions and limitations # under the License. +from __future__ import print_function + from openstack.common import processutils from tests import utils diff --git a/tests/unit/test_service.py b/tests/unit/test_service.py index 53b7eb4..77cf7ff 100644 --- a/tests/unit/test_service.py +++ b/tests/unit/test_service.py @@ -19,6 +19,9 @@ """ Unit Tests for remote procedure calls using queue """ + +from __future__ import print_function + import os import signal import time -- cgit