aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-02-02 10:18:42 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-02-02 10:18:42 +0100
commit0341d7997d2f955d9bd0915ee3ca0f8fc448577e (patch)
tree8e5e37923e90f716bb39f92a3820bb8612f92267
parent2495bdadfbf84b204961aa7f0539efba3e93b4c5 (diff)
downloadfuzzycat-0341d7997d2f955d9bd0915ee3ca0f8fc448577e.tar.gz
fuzzycat-0341d7997d2f955d9bd0915ee3ca0f8fc448577e.zip
move initialization closer to use
-rw-r--r--fuzzycat/utils.py2
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: