]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop compat.py
authorTom Christie <tom@tomchristie.com>
Mon, 22 Apr 2019 14:30:55 +0000 (15:30 +0100)
committerTom Christie <tom@tomchristie.com>
Mon, 22 Apr 2019 14:30:55 +0000 (15:30 +0100)
httpcore/compat.py [deleted file]
httpcore/decoders.py

diff --git a/httpcore/compat.py b/httpcore/compat.py
deleted file mode 100644 (file)
index 794cf6f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-try:
-    import brotli
-except ImportError:  # pragma: nocover
-    brotli = None
index 1e61998a3ad53ce116a559e7155fb5b69a9fc167..b56745c49a5ca64c9c852f2eeae1d20f18c3dc32 100644 (file)
@@ -6,7 +6,10 @@ See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
 import typing
 import zlib
 
-from .compat import brotli
+try:
+    import brotli
+except ImportError:  # pragma: nocover
+    brotli = None
 
 
 class Decoder: