From 86a3c0739617b619f05398548235c2b01accfcbd Mon Sep 17 00:00:00 2001 From: Quentin Ferrand Date: Tue, 19 Apr 2022 11:32:58 +0200 Subject: [PATCH] - --- tenkan/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tenkan/files.py b/tenkan/files.py index a935880..c4c2926 100644 --- a/tenkan/files.py +++ b/tenkan/files.py @@ -27,7 +27,7 @@ def write_files(path: str, data: dict, max_num_entries: int) -> None: num_entries = 0 # count entries in index file if pathlib.Path(f'{path}/index.gmi').is_file(): - num_entries = sum(1 for line in open(f'{path}/index.gmi')) # pylint: disable=consider-using-with + num_entries = sum(1 for line in open(f'{path}/index.gmi')) # pylint: disable=consider-using-with # if there is more articles than defined in max_num_entries, delete and rewrite if num_entries > max_num_entries: