]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Set `__module__ = 'httpx'` on everything we expose via the public API. (#1155)
authorTom Christie <tom@tomchristie.com>
Tue, 11 Aug 2020 14:40:39 +0000 (15:40 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Aug 2020 14:40:39 +0000 (15:40 +0100)
* Set __module__='httpx' on everything we expose via the public API

* Linting

* Update httpx/__init__.py

* Update httpx/__init__.py

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
httpx/__init__.py

index d9ae3513adc52706b89342b2f808e8f78581fb1b..c46e74b1b37ea7b5e8dc588d2f0b6f27b3573ab9 100644 (file)
@@ -109,3 +109,9 @@ __all__ = [
     "DigestAuth",
     "WSGITransport",
 ]
+
+
+_locals = locals()
+for name in __all__:
+    if not name.startswith("__"):
+        setattr(_locals[name], "__module__", "httpx")  # noqa