Explorar o código

Import abcs from the new location.

Jelmer Vernooij %!s(int64=6) %!d(string=hai) anos
pai
achega
6845c5b853
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  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