diff options
-rw-r--r-- | .pylintrc | 3 | ||||
-rw-r--r-- | buildstream/sandbox/_sandboxbwrap.py | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -114,9 +114,6 @@ disable=##################################### logging-format-interpolation, - # Some of us like type() - should be discouraged - unidiomatic-typecheck, - # We aren't fully compliant with pep8 import order yet wrong-import-order, wrong-import-position, diff --git a/buildstream/sandbox/_sandboxbwrap.py b/buildstream/sandbox/_sandboxbwrap.py index fc47be31e..f955a5e44 100644 --- a/buildstream/sandbox/_sandboxbwrap.py +++ b/buildstream/sandbox/_sandboxbwrap.py @@ -68,7 +68,7 @@ class SandboxBwrap(Sandbox): env = self._get_environment() # We want command args as a list of strings - if type(command) == str: + if isinstance(command, str): command = [command] # Create the mount map, this will tell us where |