diff --git a/mx.fastr/mx_fastr_pkgs.py b/mx.fastr/mx_fastr_pkgs.py index d95de3889d8e20425fb1b88bf76b00166b4cf8cb..abbe70e0d115b1104964fb4ac997ea5454967ceb 100644 --- a/mx.fastr/mx_fastr_pkgs.py +++ b/mx.fastr/mx_fastr_pkgs.py @@ -751,9 +751,9 @@ def _ignore_whitespace(gnur_line, fastr_line): def _capture_prompt(lines, idx): # The prompt can be anything, so it is hard to determine it in general. # We will therefore just consider the default prompt. - DEFAULT_PROMPT = "> " - if idx < len(lines) and lines[idx].startswith(DEFAULT_PROMPT): - return DEFAULT_PROMPT + default_prompt = "> " + if idx < len(lines) and lines[idx].startswith(default_prompt): + return default_prompt return None