From 0341d7997d2f955d9bd0915ee3ca0f8fc448577e Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 2 Feb 2021 10:18:42 +0100 Subject: move initialization closer to use --- fuzzycat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fuzzycat/utils.py') 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: -- cgit v1.2.3