Merge "Drop fallback to ordereddict module"
This commit is contained in:
commit
0f8cb1c461
@ -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…
Reference in New Issue
Block a user