Fix DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated
authorNsukami Patrick <ndkpatt at gmail dot com>
Thu, 18 Apr 2019 04:40:23 +0000
changeset 12579 ce089224954d
parent 12578 d06a2feae373
child 12580 f97eba3156c0
Fix DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated
cubicweb/multipart.py
--- a/cubicweb/multipart.py	Thu Apr 18 04:34:34 2019 +0000
+++ b/cubicweb/multipart.py	Thu Apr 18 04:40:23 2019 +0000
@@ -50,7 +50,7 @@
 # Some of these were copied from bottle: http://bottle.paws.de/
 
 try:
-    from collections import MutableMapping as DictMixin
+    from collections.abc import MutableMapping as DictMixin
 except ImportError: # pragma: no cover (fallback for Python 2.5)
     from UserDict import DictMixin