diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index 7bc6f77d..70b22ce1 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -306,7 +306,9 @@ class GitConfig(object): | |||
306 | d = self._do('--null', '--list') | 306 | d = self._do('--null', '--list') |
307 | if d is None: | 307 | if d is None: |
308 | return c | 308 | return c |
309 | for line in d.decode('utf-8').rstrip('\0').split('\0'): | 309 | if not is_python3(): |
310 | d = d.decode('utf-8') | ||
311 | for line in d.rstrip('\0').split('\0'): | ||
310 | if '\n' in line: | 312 | if '\n' in line: |
311 | key, val = line.split('\n', 1) | 313 | key, val = line.split('\n', 1) |
312 | else: | 314 | else: |