summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roten <tsr@lavabit.com>2017-06-19 08:49:42 -0500
committerThomas Roten <tsr@lavabit.com>2017-06-19 08:49:42 -0500
commit8d3e070d7eaa8f7320d304d79a02bad3b5db35fa (patch)
tree511e123e013f21e99de7a4dead8d340048cc8290
parentde9069d3d94ac879e23962fd6d0a1a2854ef0662 (diff)
Add back utf8tounicode on headers.
-rwxr-xr-xpgcli/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 6d65c508..3d70bc24 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -781,12 +781,12 @@ class PGCli(object):
output.append(title)
if cur:
- headers = [case_function(x) for x in headers]
+ headers = [case_function(utf8tounicode(x)) for x in headers]
rows = list(cur)
formatted = self.formatter.format_output(
- rows, headers, format_name= table_format, **output_kwargs)
+ rows, headers, format_name=table_format, **output_kwargs)
- if (not expanded and max_width and rows and
+ if (not expanded and max_width and
content_exceeds_width(rows[0], max_width) and headers):
formatted = self.formatter.format_output(
rows, headers, format_name='vertical', **output_kwargs)