Files
barbican/barbican/common/accept.py
Takashi Kajinami 07f1fb0516 Drop compatibility with WebOb < 1.8.0
WebOb 1.8.0 was released in 2018.

Change-Id: I073d661ea2924e9274c40a574d1c1a287c9c636f
2024-03-08 13:48:15 +09:00

20 lines
798 B
Python

# Copyright 2018 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from webob import acceptparse
NoHeaderType = getattr(acceptparse, 'AcceptNoHeader')
ValidHeaderType = getattr(acceptparse, 'AcceptValidHeader')
create_accept_header = getattr(acceptparse, 'create_accept_header')