Skip to content

Commit 138d627

Browse files
committed
more flynt issues
1 parent 612ee8b commit 138d627

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev_tools/qualtran_dev_tools/shell_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def highlight(text: str, color_code: int, bold: bool = False) -> str:
3434
Returns:
3535
The highlighted string.
3636
"""
37-
return f"{'\\x1b[1m' if bold else ''}\x1b[{color_code}m{text}\x1b[0m"
37+
return "{}\033[{}m{}\033[0m".format("\033[1m" if bold else "", color_code, text)
3838

3939

4040
def abbreviate_command_arguments_after_switches(cmd: tuple[str, ...]) -> tuple[str, ...]:

0 commit comments

Comments
 (0)