From 83e8054f6ec4a91d6cc1ec3c8cb1657adf6b8d2e Mon Sep 17 00:00:00 2001 From: Sven Van Asbroeck Date: Sun, 15 Sep 2024 05:53:05 -0400 Subject: [PATCH] Remove redundant Executor.submit() call (#9677) --- src/poetry/installation/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/installation/executor.py b/src/poetry/installation/executor.py index 196cdd5acfd..d680d6934da 100644 --- a/src/poetry/installation/executor.py +++ b/src/poetry/installation/executor.py @@ -168,7 +168,7 @@ def execute(self, operations: list[Operation]) -> int: wait(tasks) for operation in serial_operations: - wait([self._executor.submit(self._execute_operation, operation)]) + self._execute_operation(operation) except KeyboardInterrupt: self._shutdown = True