Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion httpbin/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
import gzip as gzip2
import zlib

import brotlicffi as _brotli
try:
import brotlicffi as _brotli
except ImportError:
import brotli as _brotli

from six import BytesIO
from decimal import Decimal
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"brotlicffi",
"brotli; platform_python_implementation == 'CPython'",
"brotlicffi; platform_python_implementation != 'CPython'",
"decorator",
"flasgger",
"flask >= 2.2.4",
Expand Down