Merge "Drop fallback to ordereddict module"

This commit is contained in:
Zuul 2024-09-27 14:17:08 +00:00 committed by Gerrit Code Review
commit 0f8cb1c461
2 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,7 @@
from collections import OrderedDict
import os.path
import logging
from wsme.utils import OrderedDict
from wsme.protocol import CallContext, Protocol, media_type_accept
import wsme.rest

View File

@ -111,9 +111,3 @@ def is_valid_code(code_value):
def is_client_error(code):
""" Checks client error code (RFC 2616)."""
return 400 <= code < 500
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict # noqa