]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Register IterableUserDict as a MutableMapping.
authorGeorg Brandl <georg@python.org>
Sat, 7 Jun 2008 16:16:12 +0000 (16:16 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 7 Jun 2008 16:16:12 +0000 (16:16 +0000)
Lib/UserDict.py

index 39f4d07dfae0df19a7c3918e77590ab3585edd08..0d9591a96675f3a745d3f42cbe035aaa30da418d 100644 (file)
@@ -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,