From 4365ca83dc7551d449dbbfd47b0141a91e2708f4 Mon Sep 17 00:00:00 2001 From: Fairuz-Afdhal Date: Fri, 30 Jan 2026 00:12:52 -0700 Subject: [PATCH] Use charset-normalizer instead of cchardet (obsolete) --- pyproject.toml | 4 ++-- requirements.txt | 2 +- samp_query/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a00d2af..a3b99ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "samp_query" -version = "0.6.0" +version = "0.6.1" authors = [ { name="The Cheaterman", email="the.cheaterman@gmail.com" }, ] @@ -14,7 +14,7 @@ classifiers = [ ] dependencies = [ "trio", - "faust-cchardet", + "charset-normalizer", ] [project.scripts] diff --git a/requirements.txt b/requirements.txt index 67d7787..3e9a07a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ trio # See: https://github.com/PyYoshi/cChardet/issues/81#issuecomment-1329126634 -faust-cchardet +charset-normalizer diff --git a/samp_query/__init__.py b/samp_query/__init__.py index 5fe8db8..f91152e 100644 --- a/samp_query/__init__.py +++ b/samp_query/__init__.py @@ -4,7 +4,7 @@ import typing from dataclasses import dataclass, field -import cchardet as chardet # type: ignore +import charset_normalizer as chardet # type: ignore import trio # Assuming ratio between max and min ping can't be higher than this