glance/glance/common
Victor Stinner 1c186e23fd Use oslo_utils.encodeutils.exception_to_unicode()
* Replace glance.common.utils.exception_to_str() with
  oslo_utils.encodeutils.exception_to_unicode().
* Remove exception_to_str() from glance.common.utils
* Add "from oslo_utils import encodeutils" and remove "from
  glance.common import utils" (when utils is no more used)
* glance/api/v2/images.py: replace utils.exception_to_str() with
  six.text_type() to cast the oslo_i18n message to Unicode

Glance exception_to_str() function was not compatible with Python 3,
whereas exception_to_unicode() is compatible with Python 3, it's in Oslo
common libraries and it's well tested.

This patch was first generated by a tool (modified version of sixer),
and then fixed to respect the PEP8 (especially the constraint of 80
columns).

Change-Id: I86008c8adc0c5664f96573c1015cc15e2d06e3e2
2015-07-17 18:31:03 +02:00
..
artifacts Merge "Replace types.NameType with name" 2015-06-12 12:04:29 +00:00
location_strategy Merge "Use oslo_config choices support" 2015-03-13 05:16:23 +00:00
scripts Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
auth.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
client.py Merge "Use six.moves to fix imports on Python 3" 2015-05-28 20:28:32 +00:00
config.py Change default digest_algorithm value to sha256 2015-07-02 16:26:56 +00:00
crypt.py Unify using six.moves.range rename everywhere 2015-02-25 12:05:36 +00:00
exception.py Merge "Change generic NotFound to ImageNotFound exception" 2015-06-25 05:20:12 +00:00
jsonpatchvalidator.py Domain layer for Artifact Repository 2015-06-09 16:00:46 +00:00
property_utils.py Make properties roles check case-insensitive 2015-06-03 08:30:21 +00:00
rpc.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
semver_db.py SemVer utility to store object versions in DB 2015-03-06 18:04:22 +03:00
store_utils.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
swift_store_utils.py Use six.moves to fix imports on Python 3 2015-05-27 02:57:34 +02:00
utils.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
wsgi.py Merge "Add client_socket_timeout option" 2015-06-18 17:01:42 +00:00
wsme_utils.py Upgrade to hacking 0.10 2015-01-13 15:03:27 +01:00