diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index ae288558..d6510aae 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -35,7 +35,7 @@ from git_command import terminate_ssh_clients | |||
| 35 | 35 | ||
| 36 | R_HEADS = 'refs/heads/' | 36 | R_HEADS = 'refs/heads/' |
| 37 | R_TAGS = 'refs/tags/' | 37 | R_TAGS = 'refs/tags/' |
| 38 | ID_RE = re.compile('^[0-9a-f]{40}$') | 38 | ID_RE = re.compile(r'^[0-9a-f]{40}$') |
| 39 | 39 | ||
| 40 | REVIEW_CACHE = dict() | 40 | REVIEW_CACHE = dict() |
| 41 | 41 | ||
| @@ -288,7 +288,8 @@ class GitConfig(object): | |||
| 288 | d = self._do('--null', '--list') | 288 | d = self._do('--null', '--list') |
| 289 | if d is None: | 289 | if d is None: |
| 290 | return c | 290 | return c |
| 291 | for line in d.rstrip('\0').split('\0'): | 291 | for line in d.rstrip('\0').split('\0'): # pylint: disable=W1401 |
| 292 | # Backslash is not anomalous | ||
| 292 | if '\n' in line: | 293 | if '\n' in line: |
| 293 | key, val = line.split('\n', 1) | 294 | key, val = line.split('\n', 1) |
| 294 | else: | 295 | else: |
