Drop fallback to ordereddict module

The collections module is available in Python 3.

Change-Id: I32e0b102ec4a1f2cd5c74e0ff3ed0b1e51301ba3
This commit is contained in:
Takashi Kajinami 2024-03-31 00:18:58 +09:00
parent 8312bb23d4
commit e2c5b1ff73
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