diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-10 17:34:47 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-14 13:03:54 +0000 |
commit | ee55779f1d4ea86d8499c1505fde72d2aa8fba09 (patch) | |
tree | feae5e038da9a81a7af069897876df819ba639ae /buildstream/sandbox | |
parent | aa79d317ed373bc563deb789d8d62d49a0766f50 (diff) | |
download | buildstream-ee55779f1d4ea86d8499c1505fde72d2aa8fba09.tar.gz |
sandbox: Make sandbox.run use keyword args
Diffstat (limited to 'buildstream/sandbox')
-rw-r--r-- | buildstream/sandbox/_sandboxbwrap.py | 2 | ||||
-rw-r--r-- | buildstream/sandbox/_sandboxchroot.py | 2 | ||||
-rw-r--r-- | buildstream/sandbox/sandbox.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/sandbox/_sandboxbwrap.py b/buildstream/sandbox/_sandboxbwrap.py index a64dc8092..9367b1d36 100644 --- a/buildstream/sandbox/_sandboxbwrap.py +++ b/buildstream/sandbox/_sandboxbwrap.py @@ -52,7 +52,7 @@ class SandboxBwrap(Sandbox): super().__init__(*args, **kwargs) self.user_ns_available = kwargs['user_ns_available'] - def run(self, command, flags, cwd=None, env=None): + def run(self, command, flags, *, cwd=None, env=None): stdout, stderr = self._get_output() root_directory = self.get_directory() scratch_directory = self._get_scratch_directory() diff --git a/buildstream/sandbox/_sandboxchroot.py b/buildstream/sandbox/_sandboxchroot.py index d8da7e3b5..0a6043692 100644 --- a/buildstream/sandbox/_sandboxchroot.py +++ b/buildstream/sandbox/_sandboxchroot.py @@ -40,7 +40,7 @@ class SandboxChroot(Sandbox): super().__init__(*args, **kwargs) self.mount_map = None - def run(self, command, flags, cwd=None, env=None): + def run(self, command, flags, *, cwd=None, env=None): # Default settings if cwd is None: diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py index 7c4887fe9..36119f204 100644 --- a/buildstream/sandbox/sandbox.py +++ b/buildstream/sandbox/sandbox.py @@ -134,7 +134,7 @@ class Sandbox(): 'artifact': artifact }) - def run(self, command, flags, cwd=None, env=None): + def run(self, command, flags, *, cwd=None, env=None): """Run a command in the sandbox. Args: |