diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-24 10:57:23 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-25 15:43:52 +0100 |
commit | cd20e7a1c73a798f4af31ff716ee9a7bab708a4c (patch) | |
tree | 51b7702ac145fe8a84dcdd4d3cbc6e2a689fd976 | |
parent | 3394741a554a1035715294fefed6de3d734a6b89 (diff) | |
download | buildstream-cd20e7a1c73a798f4af31ff716ee9a7bab708a4c.tar.gz |
sandbox/_sandboxchroot.py: Silence warning about dict.get
Sometimes `dict.get()` is preferable to an `if` statement, but this time
it's clearer if we keep the structure. As such, silence the warning.
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r-- | buildstream/sandbox/_sandboxchroot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxchroot.py b/buildstream/sandbox/_sandboxchroot.py index 82de2fa0a..aeba25137 100644 --- a/buildstream/sandbox/_sandboxchroot.py +++ b/buildstream/sandbox/_sandboxchroot.py @@ -263,7 +263,7 @@ class SandboxChroot(Sandbox): @contextmanager def mount_point(point, **kwargs): mount_source_overrides = self._get_mount_sources() - if point in mount_source_overrides: + if point in mount_source_overrides: # pylint: disable=consider-using-get mount_source = mount_source_overrides[point] else: mount_source = self.mount_map.get_mount_source(point) |