From 5fff236647e89a1e93659f6067eb00156436c604 Mon Sep 17 00:00:00 2001 From: dshivashankar Date: Mon, 8 Apr 2024 09:58:52 +0530 Subject: [PATCH] :bug: fix - Do not sort imports The sort_imports feature introduced has several issues. So do not use it till #287 is sorted Request: PyInf#12353 --- bin/tidy-imports | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/tidy-imports b/bin/tidy-imports index 39a16815..6912aa41 100755 --- a/bin/tidy-imports +++ b/bin/tidy-imports @@ -157,12 +157,9 @@ def main(): # TODO: disable sorting until we figure out #287 # https://github.com/deshaw/pyflyby/issues/287 # sorted_imports = sort_imports(x) - sorted_imports = x if options.canonicalize: - cannonical_imports = canonicalize_imports(sorted_imports, params=options.params) - else: - cannonical_imports = sort_imports - return cannonical_imports + x = canonicalize_imports(x, params=options.params) + return x process_actions(args, options.actions, modify)