glance/glance/api/middleware
Geetika Batra 29b282aa24 Replace assert statements with proper control-flow
When python is run with -O assert statements are optimized away.
Replacing them with proper control-flow statements (e.g., if, else,
elif) prevents the matcher from returning an invalid match.

Closes-bug: #1414532
Co-Authored-By: Ian Cordasco <ian.cordasco@rackspace.com>
Change-Id: I60b42d5a5d71602be7adc321406ea87dfcf93f46
(cherry picked from commit 6b92b53782)
2015-04-17 15:09:21 -05:00
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
cache.py Replace assert statements with proper control-flow 2015-04-17 15:09:21 -05:00
cache_manage.py Refactoring Glance logging lowering levels 2014-07-17 10:03:12 +00:00
context.py Make RequestContext use auth_token (not auth_tok) 2014-11-13 16:37:55 +00:00
gzip.py Refactoring Glance logging lowering levels 2014-07-17 10:03:12 +00:00
version_negotiation.py debug level logs should not be translated 2014-05-23 15:57:06 +02:00