diff options
author | Eric Lin <anselor@gmail.com> | 2021-01-05 11:29:39 -0500 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2021-01-21 10:24:08 -0500 |
commit | f1f76a4ba207d802f78277d0ba3defa44cf7b973 (patch) | |
tree | 0a59103b35e9160aed2466fdafa0f8020c426bcc /cmd2/ansi.py | |
parent | e0dee46ca871e56523059b1566577ff781f6fb63 (diff) | |
download | cmd2-git-import_wrapping.tar.gz |
Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.import_wrapping
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r-- | cmd2/ansi.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py index f172b87f..2a3ed01e 100644 --- a/cmd2/ansi.py +++ b/cmd2/ansi.py @@ -5,12 +5,25 @@ setting the window title, and asynchronous alerts. """ import functools import re -from enum import Enum -from typing import IO, Any, List, Union +from enum import ( + Enum, +) +from typing import ( + IO, + Any, + List, + Union, +) import colorama -from colorama import Back, Fore, Style -from wcwidth import wcswidth +from colorama import ( + Back, + Fore, + Style, +) +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) |