ports/devel/py-unittest2/files/extra-patch-python310
Po-Chuan Hsieh 5389ede757
devel/py-unittest2: Relax USES=python
- Allow build with Python 3.10+
2022-07-07 20:36:16 +08:00

11 lines
477 B
Text

--- unittest2/compatibility.py.orig 2014-10-29 10:51:58 UTC
+++ unittest2/compatibility.py
@@ -140,7 +140,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.