diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
commit | 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 (patch) | |
tree | 6d03d9b69ca6472211deb512ab80469f7b7d4802 /cmd2/ansi.py | |
parent | 43be550b235f88007c4c1792a7caff38c5ba271f (diff) | |
download | cmd2-git-9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4.tar.gz |
Add in isort changes
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r-- | cmd2/ansi.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py index 1299c8ce..59e25483 100644 --- a/cmd2/ansi.py +++ b/cmd2/ansi.py @@ -5,7 +5,9 @@ setting the window title, and asynchronous alerts. """ import functools import re -from enum import Enum +from enum import ( + Enum, +) from typing import ( IO, Any, @@ -19,7 +21,9 @@ from colorama import ( Fore, Style, ) -from wcwidth import wcswidth +from wcwidth import ( + wcswidth, +) # On Windows, filter ANSI escape codes out of text sent to stdout/stderr, and replace them with equivalent Win32 calls colorama.init(strip=False) @@ -319,7 +323,9 @@ def async_alert_str(*, terminal_columns: int, prompt: str, line: str, cursor_off :param alert_msg: the message to display to the user :return: the correct string so that the alert message appears to the user to be printed above the current line. """ - from colorama import Cursor + from colorama import ( + Cursor, + ) # Split the prompt lines since it can contain newline characters. prompt_lines = prompt.splitlines() |