| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 class Shell(object): | 6 class Shell(object): |
| 7 """Represents an abstract Mojo shell.""" | 7 """Represents an abstract Mojo shell.""" |
| 8 | 8 |
| 9 def Run(self, arguments): | 9 def Run(self, arguments): |
| 10 """Runs the shell with given arguments until shell exits, passing the stdout | 10 """Runs the shell with given arguments until shell exits, passing the stdout |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 Args: | 23 Args: |
| 24 arguments: list of arguments for the shell | 24 arguments: list of arguments for the shell |
| 25 | 25 |
| 26 Returns: | 26 Returns: |
| 27 A tuple of (return_code, output). |return_code| is the exit code returned | 27 A tuple of (return_code, output). |return_code| is the exit code returned |
| 28 by the shell or None if the exit code cannot be retrieved. |output| is the | 28 by the shell or None if the exit code cannot be retrieved. |output| is the |
| 29 stdout mingled with the stderr produced by the shell. | 29 stdout mingled with the stderr produced by the shell. |
| 30 """ | 30 """ |
| 31 raise NotImplementedError() | 31 raise NotImplementedError() |
| OLD | NEW |