python-glanceclient/glanceclient/v1
Flaper Fesp 7818387d4a Replace utils.ensure_(str|unicode) with strutils.safe(decode|encode)
Glanceclient implemented both functions before they landed into oslo.
Since both functions are already in oslo, it is now possible to pull
them in.

There's a small difference between glance's implementation and oslo's,
that is the later does not convert non-str objects - int, bool - to str
before trying to decode / encode them. This patch takes care of that
where necessary, more precisely, while encoding headers before doing a
new request.

Fixes bug: #1172253

Change-Id: I9a0dca31140bae28d8ec6aede515c5bb852b701b
2013-06-04 00:42:32 +02:00
..
__init__.py Add missing copyright headers 2012-08-02 14:34:26 -07:00
client.py SSL Certificate Validation 2012-08-04 12:09:49 -07:00
image_members.py Refactor HTTPClient to use two request methods 2012-05-22 08:45:00 -07:00
images.py Replace utils.ensure_(str|unicode) with strutils.safe(decode|encode) 2013-06-04 00:42:32 +02:00
legacy_shell.py Improve Python 3.x compatibility 2013-04-22 16:38:55 +02:00
shell.py Replace utils.ensure_(str|unicode) with strutils.safe(decode|encode) 2013-06-04 00:42:32 +02:00