Browse Source

Fix deleting config items on older versions of Python.

Jelmer Vernooij 3 years ago
parent
commit
48990b7bca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/config.py

+ 1 - 1
dulwich/config.py

@@ -106,7 +106,7 @@ class CaseInsensitiveOrderedMultiDict(MutableMapping):
     def __delitem__(self, key):
         key = lower_key(key)
         del self._keyed[key]
-        for i, (actual, unused_value) in reversed(enumerate(self._real)):
+        for i, (actual, unused_value) in reversed(list(enumerate(self._real))):
             if lower_key(actual) == key:
                 del self._real[i]