glance/glance/api
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
..
middleware Remove unused imported marker functions 2015-06-29 05:57:37 +00:00
v1 Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
v2 Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
v3 Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
__init__.py REST API layer for Artifact Repository 2015-06-10 18:49:21 +03:00
authorization.py Remove redundant parentheses in conditional statements 2015-02-17 12:35:26 +01:00
cached_images.py Add logging when policies forbid an action 2015-04-15 17:59:37 +02:00
common.py Remove unused imported marker functions 2015-06-29 05:57:37 +00:00
policy.py Remove unused imported marker functions 2015-06-29 05:57:37 +00:00
property_protections.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
versions.py REST API layer for Artifact Repository 2015-06-10 18:49:21 +03:00