yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76437
[Bug 1798224] Re: DeprecationWarning: The behavior of .best_match for the Accept classes is currently being maintained for backward compatibility, but the method will be deprecated in the future
Reviewed: https://review.openstack.org/611204
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b9bc20ed3958fba5b49015b43e314a41e904fc1b
Submitter: Zuul
Branch: master
commit b9bc20ed3958fba5b49015b43e314a41e904fc1b
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date: Tue Oct 16 14:14:56 2018 +0900
Fix best_match() deprecation warning
wsgi call to best_match() generates the following warning:
DeprecationWarning: The behavior of .best_match for the Accept classes
is currently being maintained for backward compatibility,
but the method will be deprecated in the future,
as its behavior is not specified in
(and currently does not conform to) RFC 7231.
See the following URL for more information about deprecation.
https://docs.pylonsproject.org/projects/webob/en/stable/api/webob.html#webob.acceptparse.AcceptValidHeader.best_match
Simlar changes in the wsgi best language code as well,
except new call is to lookup().
Change-Id: Ib93ffffd3f28aa6d53a0a4eed5aeee94900cb073
Closes-Bug: #1798224
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1798224
Title:
DeprecationWarning: The behavior of .best_match for the Accept classes
is currently being maintained for backward compatibility, but the
method will be deprecated in the future
Status in OpenStack Compute (nova):
Fix Released
Bug description:
When executing 'tox -e py35', the following deprecation warning is shown.
It should be fixed.
2018-10-16 03:36:49.117553 | ubuntu-xenial | {5} nova.tests.unit.api.openstack.compute.test_disk_config.DiskConfigTestCaseV21.test_update_server_override_auto [0.544275s] ... ok
2018-10-16 03:36:49.117626 | ubuntu-xenial |
2018-10-16 03:36:49.117666 | ubuntu-xenial | Captured stderr:
2018-10-16 03:36:49.117703 | ubuntu-xenial | ~~~~~~~~~~~~~~~~
(snipped...)
2018-10-16 03:36:49.118228 | ubuntu-xenial | b'/home/zuul/src/git.openstack.org/openstack/nova/.tox/py35/lib/python3.5/site-packages/webob/acceptparse.py:1379: DeprecationWarning: The behavior of .best_match for the Accept classes is currently being maintained for backward compatibility, but the method will be deprecated in the future, as its behavior is not specified in (and currently does not conform to) RFC 7231.'
2018-10-16 03:36:49.118288 | ubuntu-xenial | b' DeprecationWarning,'
2018-10-16 03:36:49.118319 | ubuntu-xenial | b''
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1798224/+subscriptions
References