summaryrefslogtreecommitdiff
path: root/cliff/formatters/table.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/formatters/table.py')
-rw-r--r--cliff/formatters/table.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/cliff/formatters/table.py b/cliff/formatters/table.py
index 397777c..df0b087 100644
--- a/cliff/formatters/table.py
+++ b/cliff/formatters/table.py
@@ -10,12 +10,12 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""Output formatters using prettytable.
-"""
+"""Output formatters using prettytable."""
-import prettytable
import os
+import prettytable
+
from cliff import utils
from . import base
from cliff import columns
@@ -39,10 +39,6 @@ class TableFormatter(base.ListFormatter, base.SingleFormatter):
str: 'l',
float: 'r',
}
- try:
- ALIGNMENTS[unicode] = 'l'
- except NameError:
- pass
def add_argument_group(self, parser):
group = parser.add_argument_group('table formatter')
@@ -175,9 +171,6 @@ class TableFormatter(base.ListFormatter, base.SingleFormatter):
@staticmethod
def _assign_max_widths(stdout, x, max_width, min_width=0, fit_width=False):
- if min_width:
- x.min_width = min_width
-
if max_width > 0:
term_width = max_width
elif not fit_width: