Import abcs from the new location.
authorJelmer Vernooij <jelmer@jelmer.uk>
Thu, 22 Nov 2018 22:25:00 +0000 (22:25 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Thu, 22 Nov 2018 22:25:00 +0000 (22:25 +0000)
dulwich/config.py

index cc818e4e56f5f2a72a051b2d221b65cee7d7babe..416d5524657066bca326ee415a4cc7d938d987cb 100644 (file)
@@ -31,11 +31,18 @@ import os
 import sys
 
 from collections import (
-    Iterable,
     OrderedDict,
-    MutableMapping,
     )
-
+try:
+    from collections.abc import (
+        Iterable,
+        MutableMapping,
+        )
+except ImportError:  # python < 3.7
+    from collections import (
+        Iterable,
+        MutableMapping,
+        )
 
 from dulwich.file import GitFile