first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""Compatibility shim for httpx2 with legacy httpx fallback.
|
||||
|
||||
Falls back to httpx when httpx2 is unavailable. The fallback is deprecated
|
||||
and will be removed in a future release.
|
||||
"""
|
||||
|
||||
from authlib.deprecate import deprecate
|
||||
|
||||
try:
|
||||
import httpx2
|
||||
except ImportError:
|
||||
import httpx as httpx2
|
||||
|
||||
deprecate(
|
||||
"The httpx module is deprecated; please use httpx2 instead."
|
||||
)
|
||||
|
||||
__all__ = ["httpx2"]
|
||||
Reference in New Issue
Block a user