From 32d1cd353f1a279bb3eebcafce98181ec26e43bb Mon Sep 17 00:00:00 2001 From: Ahmed TAHRI Date: Tue, 24 Dec 2024 09:02:00 +0100 Subject: [PATCH] :wrench: fix deprecation warning "'count' is passed as positional argument" re.sub() --- src/charset_normalizer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charset_normalizer/models.py b/src/charset_normalizer/models.py index f6de18e0..2493fc92 100644 --- a/src/charset_normalizer/models.py +++ b/src/charset_normalizer/models.py @@ -225,7 +225,7 @@ def output(self, encoding: str = "utf_8") -> bytes: iana_name(self._output_encoding), # type: ignore[arg-type] ), decoded_string[:8192], - 1, + count=1, ) decoded_string = patched_header + decoded_string[8192:]