diff options
| author | Miroslav Šedivý <6774676+eumiro@users.noreply.github.com> | 2021-04-06 08:02:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-06 07:02:41 +0100 |
| commit | 00aaba2ab7ea71c13076f3ed72d9d7e6aefa72b7 (patch) | |
| tree | d01d0ce5a21418c8ba365edc3cdaee83cca6fcdb /src/tox/tox_env/python/virtual_env | |
| parent | 3aec6725d11f4017ec7164261c470d371c7cfbee (diff) | |
| download | tox-git-00aaba2ab7ea71c13076f3ed72d9d7e6aefa72b7.tar.gz | |
Refactor: Simplify and clean up the code (#1997)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'src/tox/tox_env/python/virtual_env')
| -rw-r--r-- | src/tox/tox_env/python/virtual_env/package/api.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tox/tox_env/python/virtual_env/package/api.py b/src/tox/tox_env/python/virtual_env/package/api.py index 8e444244..e2b1095d 100644 --- a/src/tox/tox_env/python/virtual_env/package/api.py +++ b/src/tox/tox_env/python/virtual_env/package/api.py @@ -62,11 +62,7 @@ class ToxCmdStatus(CmdStatus): if status.exit_code is not None: # pragma: no branch return True # pragma: no cover # 2. the backend output reported back that our command is done - content = status.out - at = content.rfind(b"Backend: Wrote response ") - if at != -1 and content.find(b"\n", at) != -1: - return True - return False + return b"\n" in status.out.rpartition(b"Backend: Wrote response ")[0] def out_err(self) -> Tuple[str, str]: status = self._execute_status |
