From 3bed4aeea52ece30c2a237ab7b92f611b0052284 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 7 Jun 2008 16:16:12 +0000 Subject: [PATCH] Register IterableUserDict as a MutableMapping. --- Lib/UserDict.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/UserDict.py b/Lib/UserDict.py index 39f4d07dfae..0d9591a9667 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -79,6 +79,10 @@ class IterableUserDict(UserDict): def __iter__(self): return iter(self.data) +import _abcoll +_abcoll.MutableMapping.register(IterableUserDict) + + class DictMixin: # Mixin defining all dictionary methods for classes that already have # a minimum dictionary interface including getitem, setitem, delitem,