yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #61214
[Bug 1629460] Re: python35 values for http status codes not ints
Thanks Tin Lam, I'll mark invalid.
** Changed in: keystone
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1629460
Title:
python35 values for http status codes not ints
Status in OpenStack Identity (keystone):
Invalid
Bug description:
The values of Python 3.5 http status codes via http_client.OK, for
example, are enums not ints like in py27 and py34. This can cause
potential trouble and the unit tests are catching the difference.
Python 2.7/3.4
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
400
Python 3.5
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
<HTTPStatus.BAD_REQUEST: 400>
https://bitbucket.org/gutworth/six/issues/161/inconsistent-value-returned-from
https://bugs.python.org/issue26123
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1629460/+subscriptions
References