nixpkgs/pkgs/development/python-modules/unittest2/collections-compat.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
636 B
Diff
Raw Normal View History

2022-07-04 12:34:20 +02:00
diff --git a/unittest2/compatibility.py b/unittest2/compatibility.py
index 9e5f1a5..473957c 100644
--- a/unittest2/compatibility.py
+++ b/unittest2/compatibility.py
@@ -1,4 +1,5 @@
import collections
+import collections.abc
import os
import sys
@@ -140,7 +141,7 @@ except ImportError:
### ChainMap (helper for configparser and string.Template)
########################################################################
-class ChainMap(collections.MutableMapping):
+class ChainMap(collections.abc.MutableMapping):
''' A ChainMap groups multiple dicts (or other mappings) together
to create a single, updateable view.