Go to file
bhagyashris a884becdd4 Fix 'UnicodeEncodeError' for unicode values in url
Used '%' instead of format() because format() function doesn't
support the parsing of unicode codec like u'\U0001f693' in Python 2.

Python3 parse unicode codec with .format() correctly.

For example:

openstack@openstack-VirtualBox:~$ python2
Python 2.7.6 (default, Oct 26 2016, 20:30:19)

>>> '{0}'.format(u'\U0001f693')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f693'
in position 0: ordinal not in range(128)

>>> '%s' % (u'\U0001f693')
u'\U0001f693'

NOTE: format() fuction will parse unicode codec in Python 2 after
prefixing 'u' like u'{0}.format(u'\U0001f693') but prfixing 'u'
at every place is not good, so it's better to use the '%' module.

Change-Id: I2fcca96a1356df08453e08487afb62dfec91ba9d
Closes-Bug: #1570766
2017-01-24 12:39:20 +05:30
2016-03-22 13:28:14 +00:00
2016-08-30 20:40:33 +02:00
2016-02-11 11:58:19 +00:00
2012-04-03 20:50:44 -06:00
2013-11-11 10:52:07 -08:00
2012-03-26 22:48:48 -07:00
2016-12-01 12:38:08 -05:00
2013-06-22 16:00:26 +02:00
2016-07-12 07:26:45 +08:00
2015-09-29 17:56:14 +00:00

Team and repository tags

The following tags have been asserted for Python bindings to the
OpenStack Images API:
"project:official",
"stable:follows-policy",
"vulnerability:managed",
"team:diverse-affiliation".
Follow the link for an explanation of these tags.

Python bindings to the OpenStack Images API

Latest Version

Downloads

This is a client library for Glance built on the OpenStack Images API. It provides a Python API (the glanceclient module) and a command-line tool (glance). This library fully supports the v1 Images API, while support for the v2 API is in progress.

Development takes place via the usual OpenStack processes as outlined in the developer guide. The master repository is in Git.

See release notes and more at http://docs.openstack.org/developer/python-glanceclient/.

Description
OpenStack Image Management (Glance) Client
Readme 18 MiB
Languages
Python 99.7%
Shell 0.3%