81039a1e36dd8d85b14f0753bf6d4de14eaeeb94

On Python 2, decoding all arguments leads to the possibility that users that use the wrong command or mistype the name will see error output with a unicode string's representation instead of one without it. To avoid this we try and find the first non-option string in the argument list and replace it with an string that is not text only on Python 2. If we encoded the string at all times, then users installing glanceclient on Python 3 would see b'invalid-subcommand' instead. That's as bad as seeing u'invalid-subcommand' on Python 2. Closes-bug: 1533090 Change-Id: I018769e159a607ebb233902cbeb13b95ca417190
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%