diff options
| author | Timothy Crosley <timothy.crosley@gmail.com> | 2020-04-07 21:51:05 -0700 |
|---|---|---|
| committer | Timothy Crosley <timothy.crosley@gmail.com> | 2020-04-07 21:51:05 -0700 |
| commit | e1218f79fcae0b032c3372578f0745961f901f26 (patch) | |
| tree | a5034d0966ff91b5bce97c1b0bcb95a7aeda0fda | |
| parent | c3da8bb2fe72ce3d631a631d4dc6a3590ab0b15a (diff) | |
| download | isort-issue/1148-full-streaming.tar.gz | |
Close streamissue/1148-full-streaming
| -rw-r--r-- | isort/api.py | 1 |
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) |
