🐛 Use warning() to fix DeprecationWarning

pull/142/head
Mike Gerber 1 week ago
parent 224aa02163
commit a70260c10e

@ -168,7 +168,7 @@ def plain_extract(filename, include_filename_in_id=False, encoding="autodetect")
if encoding == "autodetect": if encoding == "autodetect":
fileencoding = detect_encoding(filename) fileencoding = detect_encoding(filename)
log.warn( log.warning(
f"Autodetected encoding as '{fileencoding}'" f"Autodetected encoding as '{fileencoding}'"
", it is recommended to specify it explicitly with --plain-encoding" ", it is recommended to specify it explicitly with --plain-encoding"
) )

Loading…
Cancel
Save