From a70260c10edbff774fcae1d3f636b2b5e806d4ae Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Tue, 22 Apr 2025 13:56:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20warning()=20to=20fix=20Dep?= =?UTF-8?q?recationWarning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dinglehopper/ocr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dinglehopper/ocr_files.py b/src/dinglehopper/ocr_files.py index 1eecebb..fdcaf54 100644 --- a/src/dinglehopper/ocr_files.py +++ b/src/dinglehopper/ocr_files.py @@ -168,7 +168,7 @@ def plain_extract(filename, include_filename_in_id=False, encoding="autodetect") if encoding == "autodetect": fileencoding = detect_encoding(filename) - log.warn( + log.warning( f"Autodetected encoding as '{fileencoding}'" ", it is recommended to specify it explicitly with --plain-encoding" )