Comment 3 for bug 1359880

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/116987
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=6dda6f306f44f68c437176428eb041d4fd862505
Submitter: Jenkins
Branch: master

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.

    [0] http://legacy.python.org/dev/peps/pep-3106/

    Closes-Bug: 1359880

    Change-Id: I7c59b0432725b660c9fa7270cde2e07bf3ea77db