From a82062e63c6c7e27aae34918ebfda5ef8c04b63f Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 9 Jun 2024 16:24:36 -0500 Subject: [PATCH] Pretend encoding matters as much as pylint thinks it does --- netkan/netkan/download_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netkan/netkan/download_counter.py b/netkan/netkan/download_counter.py index 85dedaf..e6c8542 100644 --- a/netkan/netkan/download_counter.py +++ b/netkan/netkan/download_counter.py @@ -288,7 +288,7 @@ def _download_summary_table(counts: Dict[str, int], how_many: int) -> str: def log_top(self, how_many: int) -> None: if self.output_file and self.output_file.exists(): - with open(self.output_file) as old_file: + with open(self.output_file, encoding='UTF-8') as old_file: old_counts = json.load(old_file) deltas = {ident: count - old_counts[ident] for ident, count in self.counts.items()