diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index a294a0b6..f6093a25 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -304,8 +304,8 @@ class GitConfig(object): | |||
304 | d = self._do('--null', '--list') | 304 | d = self._do('--null', '--list') |
305 | if d is None: | 305 | if d is None: |
306 | return c | 306 | return c |
307 | for line in d.rstrip('\0').split('\0'): # pylint: disable=W1401 | 307 | for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401 |
308 | # Backslash is not anomalous | 308 | # Backslash is not anomalous |
309 | if '\n' in line: | 309 | if '\n' in line: |
310 | key, val = line.split('\n', 1) | 310 | key, val = line.split('\n', 1) |
311 | else: | 311 | else: |