Bläddra i källkod

Import abcs from the new location.

Jelmer Vernooij 6 år sedan
förälder
incheckning
6845c5b853
1 ändrade filer med 10 tillägg och 3 borttagningar
  1. 10 3
      dulwich/config.py

+ 10 - 3
dulwich/config.py

@@ -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