From 5d150f2fc06dc00f4db8a7911e5b4bbbc846c526 Mon Sep 17 00:00:00 2001 From: richardpaulhudson Date: Wed, 20 Jul 2022 11:18:57 +0200 Subject: [PATCH] Add comment --- spacy/cli/project/parallel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/cli/project/parallel.py b/spacy/cli/project/parallel.py index 8731eda4e..e0d52251d 100644 --- a/spacy/cli/project/parallel.py +++ b/spacy/cli/project/parallel.py @@ -119,6 +119,9 @@ class _ParallelCommandInfo: number_of_os_cmds = len(self.cmd["script"]) state_str = f"{state_str} ({self.os_cmd_ind + 1}/{number_of_os_cmds})" elif state_str in ("failed", "terminated") and os.name == "nt": + # not used at present as the status table isn't displayed on Windows, + # but may be relevant in the future if Windows becomes able to handle + # ANSI commands as standard state_str = "failed/terminated" # we know we have ANSI commands because otherwise # the status table would not be displayed in the first place