diff --git a/test/maple_test/task.py b/test/maple_test/task.py index 34071d2933844d923bea9eb853e2064beb60a24c..02f54663057eb4ca5780e54e95731ca74e1ff812 100644 --- a/test/maple_test/task.py +++ b/test/maple_test/task.py @@ -447,16 +447,7 @@ def format_compare_command(raw_command, compare_cmd): prev_char = "" else: prev_char = raw_command[start - 1] - if end == len(raw_command): - next_char = "" - else: - next_char = raw_command[end] - if ( - prev_char.isalnum() - or prev_char == "_" - or next_char.isalnum() - or next_char == "_" - ): + if prev_char.isalnum() or prev_char == "_": continue else: raw_command = raw_command[:start] + compare_cmd + raw_command[end:]