diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-25 12:23:11 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-30 10:28:20 +0900 |
| commit | 1d947b30342163b723c96db563967323535fef45 (patch) | |
| tree | b6b02d02df01792b356b9e50ceeaadcaf3a2e8c5 /git_command.py | |
| parent | 2d113f35460051823ea54d61c5c939565518f969 (diff) | |
| download | git-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_command.py')
| -rw-r--r-- | git_command.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git_command.py b/git_command.py index a40e6c05..39f795ff 100644 --- a/git_command.py +++ b/git_command.py | |||
| @@ -132,15 +132,15 @@ class GitCommand(object): | |||
| 132 | gitdir = None): | 132 | gitdir = None): |
| 133 | env = os.environ.copy() | 133 | env = os.environ.copy() |
| 134 | 134 | ||
| 135 | for e in [REPO_TRACE, | 135 | for key in [REPO_TRACE, |
| 136 | GIT_DIR, | 136 | GIT_DIR, |
| 137 | 'GIT_ALTERNATE_OBJECT_DIRECTORIES', | 137 | 'GIT_ALTERNATE_OBJECT_DIRECTORIES', |
| 138 | 'GIT_OBJECT_DIRECTORY', | 138 | 'GIT_OBJECT_DIRECTORY', |
| 139 | 'GIT_WORK_TREE', | 139 | 'GIT_WORK_TREE', |
| 140 | 'GIT_GRAFT_FILE', | 140 | 'GIT_GRAFT_FILE', |
| 141 | 'GIT_INDEX_FILE']: | 141 | 'GIT_INDEX_FILE']: |
| 142 | if e in env: | 142 | if key in env: |
| 143 | del env[e] | 143 | del env[key] |
| 144 | 144 | ||
| 145 | if disable_editor: | 145 | if disable_editor: |
| 146 | _setenv(env, 'GIT_EDITOR', ':') | 146 | _setenv(env, 'GIT_EDITOR', ':') |
