提交 4bb60fcd authored 作者: abalkin's avatar abalkin

Issue #783: Use MuttableMapping instead of UserDict mixin under Python 3.

上级 d8054d9d
...@@ -294,7 +294,10 @@ if sys.version_info[:2] < (2, 7): ...@@ -294,7 +294,10 @@ if sys.version_info[:2] < (2, 7):
return not self == other return not self == other
else: else:
from UserDict import DictMixin try:
from UserDict import DictMixin
except ImportError:
from collections import MutableMapping as DictMixin
OrderedDict = collections.OrderedDict OrderedDict = collections.OrderedDict
from collections import Callable from collections import Callable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论