diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-02-02 10:18:42 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-02-02 10:18:42 +0100 |
commit | 0341d7997d2f955d9bd0915ee3ca0f8fc448577e (patch) | |
tree | 8e5e37923e90f716bb39f92a3820bb8612f92267 | |
parent | 2495bdadfbf84b204961aa7f0539efba3e93b4c5 (diff) | |
download | fuzzycat-0341d7997d2f955d9bd0915ee3ca0f8fc448577e.tar.gz fuzzycat-0341d7997d2f955d9bd0915ee3ca0f8fc448577e.zip |
move initialization closer to use
-rw-r--r-- | fuzzycat/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzycat/utils.py b/fuzzycat/utils.py index 4c961d9..0f73456 100644 --- a/fuzzycat/utils.py +++ b/fuzzycat/utils.py @@ -191,8 +191,8 @@ def zstdlines(filename, encoding="utf-8", bufsize=65536): ... print(line) """ - decomp = ZstdDecompressor() with open(filename, "rb") as f: + decomp = ZstdDecompressor() with decomp.stream_reader(f) as reader: prev_line = "" while True: |