diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-09-09 01:03:21 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-09-09 01:03:21 -0400 |
commit | d582466335d3182a15dc40bf2d8b6737fb158d46 (patch) | |
tree | 912c44bae977727cb0faa2d307fe87d1c48495b4 /cmd2/ansi.py | |
parent | a95034f9537b498acb09943cde7c323001206937 (diff) | |
download | cmd2-git-d582466335d3182a15dc40bf2d8b6737fb158d46.tar.gz |
Moved two classes from cmd2.py to utils.py.
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r-- | cmd2/ansi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py index f172b87f..afef06ce 100644 --- a/cmd2/ansi.py +++ b/cmd2/ansi.py @@ -3,9 +3,9 @@ Support for ANSI escape sequences which are used for things like applying style to text, setting the window title, and asynchronous alerts. """ +import enum import functools import re -from enum import Enum from typing import IO, Any, List, Union import colorama @@ -49,7 +49,7 @@ The default is ``STYLE_TERMINAL``. ANSI_STYLE_RE = re.compile(r'\x1b\[[^m]*m') -class ColorBase(Enum): +class ColorBase(enum.Enum): """ Base class used for defining color enums. See fg and bg classes for examples. |