]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fix typos
authormarc <Marc>
Tue, 12 May 2020 13:43:20 +0000 (15:43 +0200)
committermarc <Marc>
Fri, 15 May 2020 08:21:19 +0000 (10:21 +0200)
docs/releases/v2.2.0.rst
tornado/http1connection.py
tornado/httpserver.py
tornado/httputil.py
tornado/options.py
tornado/platform/asyncio.py
tornado/test/ioloop_test.py
tox.ini

index a3298c557cad2d3c17484e2d0405f0dbe16dcab1..922c6d2ff5d28ce19fc1721c7e8c599c181531d2 100644 (file)
@@ -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
index 7ac88d3b48c98b94b34103d9caeb5c524321eaec..ac7170f7d05878aec04abb3e51e48b9b849b4e2f 100644 (file)
@@ -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()
 
index 5797265ae3e4998fe4358eebebb3973cfd89ce37..cd4a468120140e8f39a6ec256a18ce7a2ee27a50 100644 (file)
@@ -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
index bd32cd0c49cc2e369eed7a5724a8f0402f3a227d..88020a47b29182516e7aa4713444275872050fed 100644 (file)
@@ -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"],
index db2cd9972aabb3cf4de30fda04b6206edb58a9e4..f0b89a933a415636366781122f89d469a834d0b0 100644 (file)
@@ -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
index a859e7f262330568bfb4c1c319382aa85562ae91..9b44775fa2220a19d35e739fd7557c8d1764c634 100644 (file)
@@ -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()
index cbf58e2519263e95ac486eb54e3001cbcf16e24b..fa3f75186273511496c3ed0d16582e5a24309e58 100644 (file)
@@ -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 7a9feeee279d001f86f2b0b1369244713a5503d5..ca05722c33a1b62e92d6e59df3cab0fa518d4e15 100644 (file)
--- 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