summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-24 10:52:43 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-25 15:43:52 +0100
commitdf495d16408f3626265eef5bad46e225cbabc2b1 (patch)
treea2857026752d704c6854b180c69793bd4793229c
parent4e7408ee6d57d52cbed6b2bef06ccd57b42922f6 (diff)
downloadbuildstream-df495d16408f3626265eef5bad46e225cbabc2b1.tar.gz
sandbox/_sandboxbwrap.py: Disable lint about dict.get
Sometimes `dict.get()` is preferable, in this instance it's less clear so we'll disable that lint Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r--buildstream/sandbox/_sandboxbwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxbwrap.py b/buildstream/sandbox/_sandboxbwrap.py
index 8c406e53e..fe429abe8 100644
--- a/buildstream/sandbox/_sandboxbwrap.py
+++ b/buildstream/sandbox/_sandboxbwrap.py
@@ -130,7 +130,7 @@ class SandboxBwrap(Sandbox):
mount_source_overrides = self._get_mount_sources()
for mark in marked_directories:
mount_point = mark['directory']
- if mount_point in mount_source_overrides:
+ if mount_point in mount_source_overrides: # pylint: disable=consider-using-get
mount_source = mount_source_overrides[mount_point]
else:
mount_source = mount_map.get_mount_source(mount_point)