summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-04-22 14:55:51 +0100
committerMark McLoughlin <markmc@redhat.com>2013-04-22 14:55:51 +0100
commit07d23bf74b4279b313d8ea03ca9c15b330bdbf0b (patch)
treef275bd6bf2506d492ecf6b92611adc7df3c7a047
parent120ddeff7e1b8956fe35a7a39fae87ddcac8301c (diff)
downloadoslo-07d23bf74b4279b313d8ea03ca9c15b330bdbf0b.tar.gz
oslo-07d23bf74b4279b313d8ea03ca9c15b330bdbf0b.tar.xz
oslo-07d23bf74b4279b313d8ea03ca9c15b330bdbf0b.zip
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
-rwxr-xr-xopenstack/common/rootwrap/cmd.py2
-rw-r--r--tests/unit/test_processutils.py2
-rw-r--r--tests/unit/test_service.py3
3 files changed, 7 insertions, 0 deletions
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