summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-19 09:58:35 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 17:31:06 +0000
commit4cfa0bdffbaacfbaf12ec8c6ab2f52bace0ef716 (patch)
treef4a1030750a929e0413e461fca6036701bee3406
parent432ddffdcb917e2b5a70b2cce0459be1b5881ad1 (diff)
downloadbuildstream-4cfa0bdffbaacfbaf12ec8c6ab2f52bace0ef716.tar.gz
pylint - dealt with redefined-argument-from-local warning
-rw-r--r--.pylintrc1
-rw-r--r--buildstream/sandbox/sandbox.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index 3d7373cf8..21d5e2e98 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -117,7 +117,6 @@ disable=#####################################
cyclic-import,
# These are hard to spot without linting, but easy to fix
- redefined-argument-from-local,
redefined-builtin,
redefined-outer-name,
diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py
index 9f0a58628..f5caaa5e1 100644
--- a/buildstream/sandbox/sandbox.py
+++ b/buildstream/sandbox/sandbox.py
@@ -99,8 +99,8 @@ class Sandbox():
self.__directory = directory
self.__root = os.path.join(self.__directory, 'root')
self.__scratch = os.path.join(self.__directory, 'scratch')
- for directory in [self.__root, self.__scratch]:
- os.makedirs(directory, exist_ok=True)
+ for directory_ in [self.__root, self.__scratch]:
+ os.makedirs(directory_, exist_ok=True)
def get_directory(self):
"""Fetches the sandbox root directory