From: marc Date: Tue, 12 May 2020 13:43:20 +0000 (+0200) Subject: fix typos X-Git-Tag: v6.1.0b1~27^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89a5eec290aa5e8ced402a88b2c9b6678bcac03e;p=thirdparty%2Ftornado.git fix typos --- diff --git a/docs/releases/v2.2.0.rst b/docs/releases/v2.2.0.rst index a3298c557..922c6d2ff 100644 --- a/docs/releases/v2.2.0.rst +++ b/docs/releases/v2.2.0.rst @@ -56,7 +56,7 @@ Backwards-incompatible changes * ``IOStream.write`` now works correctly when given an empty string. * ``IOStream.read_until`` (and ``read_until_regex``) now perform better - when there is a lot of buffered data, which improves peformance of + when there is a lot of buffered data, which improves performance of ``SimpleAsyncHTTPClient`` when downloading files with lots of chunks. * `.SSLIOStream` now works correctly when ``ssl_version`` is set to diff --git a/tornado/http1connection.py b/tornado/http1connection.py index 7ac88d3b4..ac7170f7d 100644 --- a/tornado/http1connection.py +++ b/tornado/http1connection.py @@ -753,7 +753,7 @@ class _GzipMessageDelegate(httputil.HTTPMessageDelegate): # chunk at this point we'd need to change the # interface to make finish() a coroutine. raise ValueError( - "decompressor.flush returned data; possile truncated input" + "decompressor.flush returned data; possible truncated input" ) return self._delegate.finish() diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 5797265ae..cd4a46812 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -212,7 +212,7 @@ class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate) This method does not currently close open websocket connections. - Note that this method is a coroutine and must be caled with ``await``. + Note that this method is a coroutine and must be called with ``await``. """ while self._connections: @@ -346,7 +346,7 @@ class _HTTPRequestContext(object): ) if proto_header: # use only the last proto entry if there is more than one - # TODO: support trusting mutiple layers of proxied protocol + # TODO: support trusting multiple layers of proxied protocol proto_header = proto_header.split(",")[-1].strip() if proto_header in ("http", "https"): self.protocol = proto_header diff --git a/tornado/httputil.py b/tornado/httputil.py index bd32cd0c4..88020a47b 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -520,7 +520,7 @@ class HTTPMessageDelegate(object): .. versionadded:: 4.0 """ - # TODO: genericize this class to avoid exposing the Union. + # TODO: generalize this class to avoid exposing the Union. def headers_received( self, start_line: Union["RequestStartLine", "ResponseStartLine"], diff --git a/tornado/options.py b/tornado/options.py index db2cd9972..f0b89a933 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -491,7 +491,7 @@ class _Mockable(object): As of ``mock`` version 1.0.1, when an object uses ``__getattr__`` hooks instead of ``__dict__``, ``patch.__exit__`` tries to delete the attribute it set instead of setting a new one (assuming that - the object does not catpure ``__setattr__``, so the patch + the object does not capture ``__setattr__``, so the patch created a new attribute in ``__dict__``). _Mockable's getattr and setattr pass through to the underlying diff --git a/tornado/platform/asyncio.py b/tornado/platform/asyncio.py index a859e7f26..9b44775fa 100644 --- a/tornado/platform/asyncio.py +++ b/tornado/platform/asyncio.py @@ -338,7 +338,7 @@ class AnyThreadEventLoopPolicy(_BasePolicy): # type: ignore try: return super().get_event_loop() except (RuntimeError, AssertionError): - # This was an AssertionError in python 3.4.2 (which ships with debian jessie) + # This was an AssertionError in Python 3.4.2 (which ships with Debian Jessie) # and changed to a RuntimeError in 3.4.3. # "There is no current event loop in thread %r" loop = self.new_event_loop() diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py index cbf58e251..fa3f75186 100644 --- a/tornado/test/ioloop_test.py +++ b/tornado/test/ioloop_test.py @@ -518,7 +518,7 @@ class TestIOLoopFutures(AsyncTestCase): # Go through an async wrapper to ensure that the result of # run_in_executor works with await and not just gen.coroutine - # (simply passing the underlying concurrrent future would do that). + # (simply passing the underlying concurrent future would do that). async def async_wrapper(self_event, other_event): return await IOLoop.current().run_in_executor( None, sync_func, self_event, other_event diff --git a/tox.ini b/tox.ini index 7a9feeee2..ca05722c3 100644 --- a/tox.ini +++ b/tox.ini @@ -38,7 +38,7 @@ basepython = # In theory, it doesn't matter which python version is used here. # In practice, things like changes to the ast module can alter # the outputs of the tools (especially where exactly the - # linter warning-supression comments go), so we specify a + # linter warning-suppression comments go), so we specify a # python version for these builds. docs: python3.8 lint: python3.8