Skip to content

Commit

Permalink
🔧 fix deprecation warning "'count' is passed as positional argument" …
Browse files Browse the repository at this point in the history
…re.sub()
  • Loading branch information
Ousret committed Dec 24, 2024
1 parent 6e3e7ab commit 32d1cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charset_normalizer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 32d1cd3

Please sign in to comment.