diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index 854b2387..7bc6f77d 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -306,8 +306,7 @@ 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'): # pylint: disable=W1401 | 309 | for line in d.decode('utf-8').rstrip('\0').split('\0'): |
| 310 | # Backslash is not anomalous | ||
| 311 | if '\n' in line: | 310 | if '\n' in line: |
| 312 | key, val = line.split('\n', 1) | 311 | key, val = line.split('\n', 1) |
| 313 | else: | 312 | else: |
