diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-12-02 13:07:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-12-02 13:07:50 +0000 |
commit | ebdc16719828dc4b790de07c2a66ca9e7a40679f (patch) | |
tree | aebde1436659ba96670f6a8ccd29d8cf39dbd17c /heatclient/shell.py | |
parent | d0b0270ec7bc20d4ff23206377d97a306af88ef5 (diff) | |
parent | 5259f00827aa6e40dee38240762cb28d8f9c2cde (diff) | |
download | python-heatclient-ebdc16719828dc4b790de07c2a66ca9e7a40679f.tar.gz |
Merge "Convert strutils to oslo.utils.encodeutils"
Diffstat (limited to 'heatclient/shell.py')
-rw-r--r-- | heatclient/shell.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py index ed1d827..97f78d9 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -23,6 +23,8 @@ import sys import six import six.moves.urllib.parse as urlparse +from oslo.utils import encodeutils + from keystoneclient.auth.identity import v2 as v2_auth from keystoneclient.auth.identity import v3 as v3_auth from keystoneclient import discover @@ -35,7 +37,6 @@ from heatclient.common import utils from heatclient import exc from heatclient.openstack.common.gettextutils import _ # noqa from heatclient.openstack.common import importutils -from heatclient.openstack.common import strutils logger = logging.getLogger(__name__) osprofiler_profiler = importutils.try_import("osprofiler.profiler") @@ -662,7 +663,7 @@ def main(args=None): if '--debug' in args or '-d' in args: raise else: - print(strutils.safe_encode(six.text_type(e)), file=sys.stderr) + print(encodeutils.safe_encode(six.text_type(e)), file=sys.stderr) sys.exit(1) if __name__ == "__main__": |