a884becdd4a51f79821833ef97a4e66e6a129d24

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
Team and repository tags
Python bindings to the OpenStack Images API
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/.
- License: Apache License, Version 2.0
- PyPi - package installation
- Online Documentation
- Launchpad project - release management
- Blueprints - feature specifications
- Bugs - issue tracking
- Source
- Specs
- How to Contribute
Description
Languages
Python
99.7%
Shell
0.3%