Просмотр исходного кода

Don't use ConfigParser(allow_no_value=True) as it's not supported on Python2.6

Gary van der Merwe 10 лет назад
Родитель
Сommit
d6071579d5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dulwich/contrib/swift.py

+ 1 - 1
dulwich/contrib/swift.py

@@ -162,7 +162,7 @@ def load_conf(path=None, file=None):
     :param path: The path to the configuration file
     :param file: If provided read instead the file like object
     """
-    conf = ConfigParser(allow_no_value=True)
+    conf = ConfigParser()
     if file:
         conf.readfp(file)
         return conf