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/table_creator.py | |
parent | a95034f9537b498acb09943cde7c323001206937 (diff) | |
download | cmd2-git-d582466335d3182a15dc40bf2d8b6737fb158d46.tar.gz |
Moved two classes from cmd2.py to utils.py.
Diffstat (limited to 'cmd2/table_creator.py')
-rw-r--r-- | cmd2/table_creator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/table_creator.py b/cmd2/table_creator.py index 7a5c826c..fc2398f2 100644 --- a/cmd2/table_creator.py +++ b/cmd2/table_creator.py @@ -6,10 +6,10 @@ The general use case is to inherit from TableCreator to create a table class wit There are already implemented and ready-to-use examples of this below TableCreator's code. """ import copy +import enum import functools import io from collections import deque -from enum import Enum from typing import Any, Optional, Sequence, Tuple, Union from wcwidth import wcwidth @@ -39,14 +39,14 @@ EMPTY = '' SPACE = ' ' -class HorizontalAlignment(Enum): +class HorizontalAlignment(enum.Enum): """Horizontal alignment of text in a cell""" LEFT = 1 CENTER = 2 RIGHT = 3 -class VerticalAlignment(Enum): +class VerticalAlignment(enum.Enum): """Vertical alignment of text in a cell""" TOP = 1 MIDDLE = 2 |