From: Clifford Wolf Date: Thu, 21 Mar 2019 19:09:44 +0000 (+0100) Subject: Backward compatibility with Python 3.4 API X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32d73254464bee3c10496c115f7237df8c64cab4;p=SymbiYosys.git Backward compatibility with Python 3.4 API Signed-off-by: Clifford Wolf --- diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 482e168..b0698d2 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -234,7 +234,10 @@ class SbyJob: if task.running: fds.append(task.p.stdout) - select(fds, [], [], 1.0) == ([], [], []) + try: + select(fds, [], [], 1.0) == ([], [], []) + except InterruptedError: + pass for task in self.tasks_running: task.poll()