commit 6dda6f306f44f68c437176428eb041d4fd862505
Author: Louis Taylor <email address hidden>
Date: Tue Aug 26 18:21:47 2014 +0000
Fix error when logging http response with python 3
Python 3 changed the semantics of dict.items() [0], which now returns a
iterable 'view' instead of a list of tuples. This has the repercussion
that you can no longer check for membership of a key using:
key in dict.items()
This patch simply replaces that check with a test for the key existing
in the dict itself, rather than the items.
Reviewed: https:/ /review. openstack. org/116987 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=6dda6f306f4 4f68c437176428e b041d4fd862505
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6dda6f306f44f68 c437176428eb041 d4fd862505
Author: Louis Taylor <email address hidden>
Date: Tue Aug 26 18:21:47 2014 +0000
Fix error when logging http response with python 3
Python 3 changed the semantics of dict.items() [0], which now returns a
iterable 'view' instead of a list of tuples. This has the repercussion
that you can no longer check for membership of a key using:
key in dict.items()
This patch simply replaces that check with a test for the key existing
in the dict itself, rather than the items.
[0] http:// legacy. python. org/dev/ peps/pep- 3106/
Closes-Bug: 1359880
Change-Id: I7c59b0432725b6 60c9fa7270cde2e 07bf3ea77db