]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix typos in comments (#294)
authorMin ho Kim <minho42@gmail.com>
Thu, 29 Aug 2019 17:14:15 +0000 (03:14 +1000)
committerFlorimond Manca <florimond.manca@gmail.com>
Thu, 29 Aug 2019 17:14:15 +0000 (19:14 +0200)
httpx/models.py
httpx/status_codes.py
tests/client/test_client.py
tests/dispatch/test_threaded.py

index c511819cc5a8ac08081b3e21744164a8f3a3ea48..13a1fe806d51b19614c5d77c732d3884ca3ae5bb 100644 (file)
@@ -1194,7 +1194,7 @@ class Cookies(MutableMapping):
 
     class _CookieCompatRequest(urllib.request.Request):
         """
-        Wraps a `Request` instance up in a compatability interface suitable
+        Wraps a `Request` instance up in a compatibility interface suitable
         for use with `CookieJar` operations.
         """
 
@@ -1212,7 +1212,7 @@ class Cookies(MutableMapping):
 
     class _CookieCompatResponse:
         """
-        Wraps a `Request` instance up in a compatability interface suitable
+        Wraps a `Request` instance up in a compatibility interface suitable
         for use with `CookieJar` operations.
         """
 
index 557b7584465e8f288db5ffd60301b64af694130d..3be26cafed44403f4586baa5cb4e69d4a9631bda 100644 (file)
@@ -130,6 +130,6 @@ class StatusCode(IntEnum):
 
 codes = StatusCode
 
-#  Include lower-case styles for `requests` compatability.
+#  Include lower-case styles for `requests` compatibility.
 for code in codes:
     setattr(codes, code._name_.lower(), int(code))
index 293d216360eaf9662613c9b1da0a38f006298ab0..ac558f5b31fe5c689b765be4f515796e898d0565 100644 (file)
@@ -8,7 +8,7 @@ import httpx
 
 def threadpool(func):
     """
-    Our sync tests should run in seperate thread to the uvicorn server.
+    Our sync tests should run in separate thread to the uvicorn server.
     """
 
     @functools.wraps(func)
index a2bb954a78137d24b7c588f01cc93e8366e87aa2..8698d63998b793678a7538ba02d3a80b01fe2ce8 100644 (file)
@@ -102,7 +102,7 @@ def test_threaded_request_body_streaming():
 
 def test_dispatch_class():
     """
-    Use a syncronous 'Dispatcher' class directly.
+    Use a synchronous 'Dispatcher' class directly.
     """
     url = "https://example.org/"
     with MockDispatch() as dispatcher: