summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-04-07 21:51:05 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2020-04-07 21:51:05 -0700
commite1218f79fcae0b032c3372578f0745961f901f26 (patch)
treea5034d0966ff91b5bce97c1b0bcb95a7aeda0fda
parentc3da8bb2fe72ce3d631a631d4dc6a3590ab0b15a (diff)
downloadisort-issue/1148-full-streaming.tar.gz
-rw-r--r--isort/api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/isort/api.py b/isort/api.py
index c0967b18..f88a95ce 100644
--- a/isort/api.py
+++ b/isort/api.py
@@ -486,6 +486,7 @@ def sort_file(
disregard_skip=disregard_skip,
**config_kwargs,
)
+ source_file.stream.close()
if changed:
if show_diff or ask_to_apply:
source_file.stream.seek(0)