From 1d947b30342163b723c96db563967323535fef45 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 25 Oct 2012 12:23:11 +0900 Subject: 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 --- git_command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git_command.py') 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): gitdir = None): env = os.environ.copy() - for e in [REPO_TRACE, + for key in [REPO_TRACE, GIT_DIR, 'GIT_ALTERNATE_OBJECT_DIRECTORIES', 'GIT_OBJECT_DIRECTORY', 'GIT_WORK_TREE', 'GIT_GRAFT_FILE', 'GIT_INDEX_FILE']: - if e in env: - del env[e] + if key in env: + del env[key] if disable_editor: _setenv(env, 'GIT_EDITOR', ':') -- cgit v1.2.3-54-g00ecf