Jelmer Vernooij 8 лет назад
Родитель
Сommit
9281acb26f
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      dulwich/config.py
  2. 1 1
      dulwich/tests/test_config.py

+ 3 - 3
dulwich/config.py

@@ -428,7 +428,7 @@ def parse_submodules(config):
     """
     for section in config.keys():
         section_kind, section_name = section
-        if section_kind == 'submodule':
-            sm_path = config.get(section, 'path')
-            sm_url = config.get(section, 'url')
+        if section_kind == b'submodule':
+            sm_path = config.get(section, b'path')
+            sm_url = config.get(section, b'url')
             yield (sm_path, sm_url, section_name)

+ 1 - 1
dulwich/tests/test_config.py

@@ -305,4 +305,4 @@ class SubmodulesTests(TestCase):
 """))
         got = list(parse_submodules(cf))
         self.assertEqual([
-            ('core/lib', 'https://github.com/phhusson/QuasselC.git', 'core/lib')], got)
+            (b'core/lib', b'https://github.com/phhusson/QuasselC.git', b'core/lib')], got)