commit 8a8e5bf56c7bd5ca9877e49fda8f5a95064a003b
Author: Gábor Antal <email address hidden>
Date: Thu Aug 25 11:39:21 2016 +0200
Extracted HTTP response codes to constants in tests
There are several places in the source code where
HTTP response codes are used as numeric values.
These values are used from six.moves and the
numeric values are replaced by constants.
All of the used status codes were replaced with symbolic constants
from six.moves.http_client.
More about six.moves.http_client can be found at [2],
under the table "Supported renames:".
Also, this change improves code readibility.
This patchset does not extract numeric values from
the code itself, but it can be found at [1].
Reviewed: https:/ /review. openstack. org/360378 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=8a8e5bf56c7 bd5ca9877e49fda 8f5a95064a003b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8a8e5bf56c7bd5c a9877e49fda8f5a 95064a003b
Author: Gábor Antal <email address hidden>
Date: Thu Aug 25 11:39:21 2016 +0200
Extracted HTTP response codes to constants in tests
There are several places in the source code where
HTTP response codes are used as numeric values.
These values are used from six.moves and the
numeric values are replaced by constants.
All of the used status codes were replaced with symbolic constants http_client. http_client can be found at [2],
from six.moves.
More about six.moves.
under the table "Supported renames:".
Also, this change improves code readibility.
This patchset does not extract numeric values from
the code itself, but it can be found at [1].
[1]: Ib9e26dcea927e9 6e65c626c184216 21d3a29a64d /pythonhosted. org/six/ #module- six.moves
[2]: https:/
Change-Id: Idfc7b043552f42 8f01ac3e47b270e e0639a8f5bc
Closes-Bug: #1520159