summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-12-13 21:26:39 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-12-13 21:26:39 -0800
commitf9113bbbde3d8fd9328801ef5a9d4fe855e44c14 (patch)
tree4fc06eee8ce64d29344dc37eba4e76389fea54c7
parent47aba1507f4f0051271c02899904c557c6a34b27 (diff)
downloadisort-f9113bbbde3d8fd9328801ef5a9d4fe855e44c14.tar.gz
Clear import seciton
-rw-r--r--isort/api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/isort/api.py b/isort/api.py
index d0738522..c2c2c78d 100644
--- a/isort/api.py
+++ b/isort/api.py
@@ -203,6 +203,7 @@ def sort_imports(
parse.file_contents(import_section, config=config), config, extension
))
contains_imports = False
+ import_section = ""
else:
output_stream.write(line)
not_imports = False