Check brotlicffi for ACCEPTED_ENCODINGS

This commit is contained in:
Laerte Pereira 2024-03-05 22:11:11 -03:00
parent 532cd2eabd
commit 7f1fbdba3c
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ logger = getLogger(__name__)
ACCEPTED_ENCODINGS: List[bytes] = [b"gzip", b"deflate"]
try:
import brotli # noqa: F401
try:
import brotli # noqa: F401
except ImportError:
import brotlicffi # noqa: F401
except ImportError:
pass
else: