Skip to content

Commit

Permalink
Pretend encoding matters as much as pylint thinks it does
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jun 9, 2024
1 parent 3fffab5 commit a82062e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netkan/netkan/download_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a82062e

Please sign in to comment.