summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTamas Szabo <szabtam@gmail.com>2020-08-23 11:56:26 +0300
committerTamas Szabo <szabtam@gmail.com>2020-08-23 11:56:26 +0300
commit62bf6b8b2b99e4f5a56c5485aa992bf292002816 (patch)
treee2023e9b061c87176120d339e92fa55cc53a7f98 /scripts
parent19221a3e3c4e17e51056d1e70cd565b16f149cea (diff)
downloadisort-62bf6b8b2b99e4f5a56c5485aa992bf292002816.tar.gz
Small refactoring in output.py.
* remove duplication in handling `from_first` * `with_from_import` and `with_straight_import` don't need to know or write to the "global" `section_output` - remove `section_output` argument - remove `section_output.copy()` - functions return their own output without knowing about the "global" output * `sort_ignore_case` already passed in to `_with_from_imports` in `config`. Just use it from there.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions