glance/glance/api/v2
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
..
model Merge "Add operators to provide multivalue support" 2015-03-11 06:57:54 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
image_actions.py Remove string formatting from policy logging 2015-05-01 20:01:43 +01:00
image_data.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
image_members.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
image_tags.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
images.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_namespaces.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_objects.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_properties.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_resource_types.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_tags.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
router.py Add ability to deactivate an image 2015-03-13 14:21:11 -04:00
schemas.py Adding Metadef Tag support 2014-12-17 19:45:40 +00:00
tasks.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00