Commit bc66c927 authored by Antoine Grouazel's avatar Antoine Grouazel

fix a bug with test OrderedDict in abstractfeature.py

parent 89908115
......@@ -58,8 +58,8 @@ class AbstractFeature(object):
# check type of fields
if fields is not None:
if isinstance(fields, dict):
logging.warning("Usage of dict for 'fields' is deprecated")
if not hasattr(fields,'_OrderedDict__root'):# _OrderedDict__marker
logging.warning("Usage of dict for 'fields' is deprecated (%s)",fields)
self._fields = OrderedDict(fields)
elif not isinstance(fields, OrderedDict):
raise TypeError(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment