summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@netflix.com>2021-05-05 21:01:12 -0700
committerAmjith Ramanujam <amjith@netflix.com>2021-05-05 21:01:12 -0700
commit2fe94c38b4e2fb3f724598b15c1dca280961a84e (patch)
tree12099896c284549090617034b33e795eb7019f47
parent803a9d329459064cf0bffddfac29cbc95509998b (diff)
Black formatting.
-rw-r--r--pgcli/main.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 05d97e73..ecf041bb 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -1248,8 +1248,7 @@ def cli(
else:
print("Config file is now located at", config_full_path)
print(
- "Please move the existing config file ~/.pgclirc to",
- config_full_path,
+ "Please move the existing config file ~/.pgclirc to", config_full_path,
)
if list_dsn:
try:
@@ -1488,7 +1487,12 @@ def format_output(title, cur, headers, status, settings):
formatted = iter(formatted.splitlines())
first_line = next(formatted)
formatted = itertools.chain([first_line], formatted)
- if not expanded and max_width and len(strip_ansi(first_line)) > max_width and headers:
+ if (
+ not expanded
+ and max_width
+ and len(strip_ansi(first_line)) > max_width
+ and headers
+ ):
formatted = formatter.format_output(
cur, headers, format_name="vertical", column_types=None, **output_kwargs
)