summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-25 12:23:11 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-30 10:28:20 +0900
commit1d947b30342163b723c96db563967323535fef45 (patch)
treeb6b02d02df01792b356b9e50ceeaadcaf3a2e8c5 /git_config.py
parent2d113f35460051823ea54d61c5c939565518f969 (diff)
downloadgit-repo-1d947b30342163b723c96db563967323535fef45.tar.gz
Even more coding style cleanup
Fixing some more pylint warnings: W1401: Anomalous backslash in string W0623: Redefining name 'name' from outer scope W0702: No exception type(s) specified E0102: name: function already defined line n Change-Id: I5afcdb4771ce210390a79981937806e30900a93c
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py5
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
36R_HEADS = 'refs/heads/' 36R_HEADS = 'refs/heads/'
37R_TAGS = 'refs/tags/' 37R_TAGS = 'refs/tags/'
38ID_RE = re.compile('^[0-9a-f]{40}$') 38ID_RE = re.compile(r'^[0-9a-f]{40}$')
39 39
40REVIEW_CACHE = dict() 40REVIEW_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: