Drop fallback to ordereddict module
The collections module is available in Python 3. Change-Id: I32e0b102ec4a1f2cd5c74e0ff3ed0b1e51301ba3
This commit is contained in:
parent
8312bb23d4
commit
e2c5b1ff73
@ -1,7 +1,7 @@
|
|||||||
|
from collections import OrderedDict
|
||||||
import os.path
|
import os.path
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from wsme.utils import OrderedDict
|
|
||||||
from wsme.protocol import CallContext, Protocol, media_type_accept
|
from wsme.protocol import CallContext, Protocol, media_type_accept
|
||||||
|
|
||||||
import wsme.rest
|
import wsme.rest
|
||||||
|
@ -111,9 +111,3 @@ def is_valid_code(code_value):
|
|||||||
def is_client_error(code):
|
def is_client_error(code):
|
||||||
""" Checks client error code (RFC 2616)."""
|
""" Checks client error code (RFC 2616)."""
|
||||||
return 400 <= code < 500
|
return 400 <= code < 500
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
from collections import OrderedDict
|
|
||||||
except ImportError:
|
|
||||||
from ordereddict import OrderedDict # noqa
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user