From c8d8f6f5dbe81c53cc0efb43f9525e58f25cd77e Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Tue, 27 Jan 2026 08:23:42 -0500 Subject: [PATCH] remove unused preprocessor for tabular output This align_decimals preprocessor seems to have no effect, and if it did, we wouldn't want that effect. --- changelog.md | 8 ++++++++ mycli/main.py | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index c4341538..cff962b4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +TBD +============== + +Internal +-------- +* Remove `align_decimals` preprocessor, which had no effect. + + 1.48.0 (2026/01/27) ============== diff --git a/mycli/main.py b/mycli/main.py index fadffc19..90aaf2a3 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -1409,10 +1409,7 @@ def format_output( if use_formatter.format_name not in sql_format.supported_formats: # will run before preprocessors defined as part of the format in cli_helpers - output_kwargs["preprocessors"] = ( - preprocessors.convert_to_undecoded_string, - preprocessors.align_decimals, - ) + output_kwargs["preprocessors"] = (preprocessors.convert_to_undecoded_string,) if title: # Only print the title if it's not None. output = itertools.chain(output, [title])