diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-12-23 01:39:12 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-12-23 01:39:12 -0800 |
commit | 1d5394d473dd00903976ac3745956969ec61711b (patch) | |
tree | 07d73c25ebc924b8910866839839fc48d36dee9e | |
parent | 058331e60b57a81e5094cdf418dc7a61071d3cfb (diff) | |
download | isort-1d5394d473dd00903976ac3745956969ec61711b.tar.gz |
Black formatting
-rw-r--r-- | isort/api.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/isort/api.py b/isort/api.py index 00b4c4fd..94fdd389 100644 --- a/isort/api.py +++ b/isort/api.py @@ -232,7 +232,12 @@ def sort_imports( not_imports = True if not_imports: - if not in_top_comment and not in_quote and not import_section and not line.lstrip().startswith(COMMENT_INDICATORS): + if ( + not in_top_comment + and not in_quote + and not import_section + and not line.lstrip().startswith(COMMENT_INDICATORS) + ): import_section = additional_imports() if import_section: |