From 0587d5ff6209cd8675e691b938b31e0884a03a0e Mon Sep 17 00:00:00 2001 From: Ben Coleman Date: Thu, 20 Jun 2024 13:05:08 -0400 Subject: [PATCH] fix more pylint errors --- mirrulations-extractor/src/mirrextractor/extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrulations-extractor/src/mirrextractor/extractor.py b/mirrulations-extractor/src/mirrextractor/extractor.py index b67850b0..f1cdb860 100644 --- a/mirrulations-extractor/src/mirrextractor/extractor.py +++ b/mirrulations-extractor/src/mirrextractor/extractor.py @@ -126,7 +126,7 @@ def update_stats(): # large, and a restart would try again. This ensures # that the extraction is not attempted again when the # extractor process is restarted (by Docker). - with open(output_path, 'w') as f: + with open(output_path, 'w', encoding='utf-8') as f: pass start_time = time.time() Extractor.extract_text(complete_path, output_path)