We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6e049 commit 7ab2459Copy full SHA for 7ab2459
httpbin/filters.py
@@ -10,7 +10,10 @@
10
import gzip as gzip2
11
import zlib
12
13
-import brotlicffi as _brotli
+try:
14
+ import brotlicffi as _brotli
15
+except ImportError:
16
+ import brotli as _brotli
17
18
from six import BytesIO
19
from decimal import Decimal
pyproject.toml
@@ -31,7 +31,8 @@ classifiers = [
31
"Programming Language :: Python :: 3.12",
32
]
33
dependencies = [
34
- "brotlicffi",
+ "brotli; platform_python_implementation == 'CPython'",
35
+ "brotlicffi; platform_python_implementation != 'CPython'",
36
"decorator",
37
"flasgger",
38
"flask >= 2.2.4",
0 commit comments