summaryrefslogtreecommitdiff
path: root/ironicclient/shell.py
diff options
context:
space:
mode:
authorGhe Rivero <ghe.rivero@hp.com>2013-11-06 10:28:00 +0100
committerGhe Rivero <ghe.rivero@hp.com>2013-11-06 10:30:39 +0100
commita6fd095e95c69441c23cefd9a155206dde2b7be5 (patch)
tree23c84ec9799d26203b1734da147f8c949935a1db /ironicclient/shell.py
parent94e0fb78e4df8cff30ee2e376b3e64aa602a092c (diff)
downloadpython-ironicclient-a6fd095e95c69441c23cefd9a155206dde2b7be5.tar.gz
Transform print statement to print function
Needed to comply with new hacking>=0.8.0,<0.9 requirement. Partial implement: blueprint py33-support Change-Id: I478a47c814462a4f7edb0f389a00666bc901af77
Diffstat (limited to 'ironicclient/shell.py')
-rw-r--r--ironicclient/shell.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ironicclient/shell.py b/ironicclient/shell.py
index 3ff4c0f..f965689 100644
--- a/ironicclient/shell.py
+++ b/ironicclient/shell.py
@@ -14,6 +14,8 @@
Command-line interface to the OpenStack Bare Metal Provisioning
"""
+from __future__ import print_function
+
import argparse
import httplib2
import logging
@@ -268,7 +270,7 @@ def main():
IronicShell().main(sys.argv[1:])
except Exception as e:
- print >> sys.stderr, e
+ print(str(e), file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":