request.accept_language.best_match
will be deprecated
#17969
Labels
request.accept_language.best_match
will be deprecated
#17969
Per https://github.com/Pylons/webob/blob/39d5af3c797e7b867f152c2e8c979de42d029403/src/webob/acceptparse.py#L4358-L4374:
We may want to replace this with
request.accept_language.lookup
instead.A potential issue is that at https://github.com/pypi/infra/blob/d5374e6e92f5a09729d649a0a587935d19f2d76f/terraform/warehouse/vcl/main.vcl#L168 we use the
language_lookup
function, this might behave slightly differently thanbest_match
or slightly differently thanlookup
(unsure). The former might result in a current bug, and the latter might produce a bug if we uselookup
instead, in which the locale we negotiate differs from what we set in VCL.The text was updated successfully, but these errors were encountered: