]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
docs: fix typos in comments and documentation 3620/head
authormokashang <shangmengjiajiajia@gmail.com>
Tue, 12 May 2026 06:49:55 +0000 (23:49 -0700)
committermokashang <shangmengjiajiajia@gmail.com>
Tue, 12 May 2026 06:49:55 +0000 (23:49 -0700)
Corrects nine misspellings found in source code comments, docstrings,
and Sphinx documentation. No runtime behavior is changed.

- docs/guide/intro.rst: implementions -> implementations
- docs/guide/structure.rst: asynchronus -> asynchronous
- tornado/auth.py: verfication -> verification
- tornado/escape.py: Equvalent -> Equivalent; entites -> entities
- tornado/httputil.py: vaildation -> validation
- tornado/platform/asyncio.py: presense -> presence
- tornado/test/httputil_test.py: unamed -> unnamed
- tornado/web.py: presense -> presence

docs/guide/intro.rst
docs/guide/structure.rst
tornado/auth.py
tornado/escape.py
tornado/httputil.py
tornado/platform/asyncio.py
tornado/test/httputil_test.py
tornado/web.py

index 2684c3890e08b47db3e47f207e4e97d3013dd2e2..324fdd704141d5ec5c88590b8c25a12b5a2444d3 100644 (file)
@@ -13,7 +13,7 @@ Tornado can be roughly divided into three major components:
 
 * A web framework (including `.RequestHandler` which is subclassed to
   create web applications, and various supporting classes).
-* Client- and server-side implementions of HTTP (`.HTTPServer` and
+* Client- and server-side implementations of HTTP (`.HTTPServer` and
   `.AsyncHTTPClient`).
 * An asynchronous networking library including the classes `.IOLoop`
   and `.IOStream`, which serve as the building blocks for the HTTP
index 100ad6bb5f163a3710e9ead5bdb41385a1335922..f3c23996c236beb5125c78ea9a05e5966ba9cddc 100644 (file)
@@ -50,7 +50,7 @@ Python.)
 
 When the ``main`` function returns, the program exits, so most of the time for a
 web server ``main`` should run forever. Waiting on an `asyncio.Event` whose
-``set()`` method is never called is a convenient way to make an asynchronus
+``set()`` method is never called is a convenient way to make an asynchronous
 function run forever. (and if you wish to have ``main`` exit early as a part of
 a graceful shutdown procedure, you can call ``shutdown_event.set()`` to make it
 exit).
index 977433211e1447b6bd38d2f4775535f219cd3470..94a6c50c14a18b8f83150320603bc2fef69f9829 100644 (file)
@@ -855,7 +855,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
     * Select a project, or create a new one.
     * Depending on permissions required, you may need to set your app to
       "testing" mode and add your account as a test user, or go through
-      a verfication process. You may also need to use the "Enable
+      a verification process. You may also need to use the "Enable
       APIs and Services" command to enable specific services.
     * In the sidebar on the left, select Credentials.
     * Click CREATE CREDENTIALS and click OAuth client ID.
index a75aff11ffa8fae4127e632f8eb50fe2c12b0b9a..1241c9f92fcdff42c0b4f1f9ad37a7f495449a54 100644 (file)
@@ -99,7 +99,7 @@ def json_encode(value: Any) -> str:
 def json_decode(value: str | bytes) -> Any:
     """Returns Python objects for the given JSON string.
 
-    Supports both `str` and `bytes` inputs. Equvalent to `json.loads`.
+    Supports both `str` and `bytes` inputs. Equivalent to `json.loads`.
     """
     return json.loads(value)
 
@@ -393,7 +393,7 @@ def linkify(
         return f'<a href="{href}"{params}>{url}</a>'
 
     # First HTML-escape so that our strings are all safe.
-    # The regex is modified to avoid character entites other than &amp; so
+    # The regex is modified to avoid character entities other than &amp; so
     # that we won't pick up &quot;, etc.
     text = _unicode(xhtml_escape(text))
     return _URL_RE.sub(make_link, text)
index 2936e61b71f05f4589b8d61bace4add69c4eb04d..d91a7c176e1fe3309b90673b08827b165102d413 100644 (file)
@@ -73,7 +73,7 @@ class _ABNF:
     """
 
     # RFC 3986 (URI)
-    # The URI hostname ABNF is both complex (including detailed vaildation of IPv4 and IPv6
+    # The URI hostname ABNF is both complex (including detailed validation of IPv4 and IPv6
     # literals) and not strict enough (a lot of punctuation is allowed by the ABNF even though
     # it is not allowed by DNS). We simplify it by allowing square brackets and colons in any
     # position, not only for their use in IPv6 literals.
index dbbd92de5f7595d5aea25a1a210238ec3fc20574..b7b63d199a8bc3942b8058609bc0c3dbe2137eb9 100644 (file)
@@ -533,7 +533,7 @@ class SelectorThread:
         self._thread.start()
         self._start_select()
         try:
-            # The presense of this yield statement means that this coroutine
+            # The presence of this yield statement means that this coroutine
             # is actually an asynchronous generator, which has a special
             # shutdown protocol. We wait at this yield point until the
             # event loop's shutdown_asyncgens method is called, at which point
index cca2933ba53fc6434c47dd6af3ccafb6249d86ec..8732fee28ab3ba9ce1bafee6f303459befc3b86a 100644 (file)
@@ -666,7 +666,7 @@ class ParseCookieTest(unittest.TestCase):
             "django_language",
             parse_cookie("abc=def; unnamed; django_language=en").keys(),
         )
-        # Even a double quote may be an unamed value.
+        # Even a double quote may be an unnamed value.
         self.assertEqual(parse_cookie('a=b; "; c=d'), {"a": "b", "": '"', "c": "d"})
         # Spaces in names and values, and an equals sign in values.
         self.assertEqual(
index 39a060f685b91bb13127d549e773d926fe25c339..b572beac06a9020feaaa6da54d9f8860cfba9ef5 100644 (file)
@@ -720,7 +720,7 @@ class RequestHandler:
             # Note change from _ to -.
             morsel["max-age"] = str(max_age)
         if httponly:
-            # Note that SimpleCookie ignores the value here. The presense of an
+            # Note that SimpleCookie ignores the value here. The presence of an
             # httponly (or secure) key is treated as true.
             morsel["httponly"] = True
         if secure: