From: Min ho Kim Date: Thu, 29 Aug 2019 17:14:15 +0000 (+1000) Subject: Fix typos in comments (#294) X-Git-Tag: 0.7.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b20995f7a9ba8a0ab46b61469f368141f16f55;p=thirdparty%2Fhttpx.git Fix typos in comments (#294) --- diff --git a/httpx/models.py b/httpx/models.py index c511819c..13a1fe80 100644 --- a/httpx/models.py +++ b/httpx/models.py @@ -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. """ diff --git a/httpx/status_codes.py b/httpx/status_codes.py index 557b7584..3be26caf 100644 --- a/httpx/status_codes.py +++ b/httpx/status_codes.py @@ -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)) diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 293d2163..ac558f5b 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -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) diff --git a/tests/dispatch/test_threaded.py b/tests/dispatch/test_threaded.py index a2bb954a..8698d639 100644 --- a/tests/dispatch/test_threaded.py +++ b/tests/dispatch/test_threaded.py @@ -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: