]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix various typos in comments
authorBen Darnell <ben@bendarnell.com>
Sun, 23 Jul 2017 18:48:37 +0000 (14:48 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 23 Jul 2017 18:48:37 +0000 (14:48 -0400)
docs/auth.rst
docs/releases/v3.0.0.rst
tornado/httpserver.py
tornado/log.py
tornado/test/httpclient_test.py
tornado/test/ioloop_test.py

index 0da249cfb1cc7de39e0149b2b342e388c6c53a71..dfbe3ed9849b0567b07fc6b51fdd08c6c3e3aaad 100644 (file)
@@ -13,7 +13,7 @@
    These classes implement the OpenID and OAuth standards.  They will
    generally need to be subclassed to use them with any particular site.
    The degree of customization required will vary, but in most cases
-   overridding the class attributes (which are named beginning with
+   overriding the class attributes (which are named beginning with
    underscores for historical reasons) should be sufficient.
 
    .. autoclass:: OpenIdMixin
index 1dd01d629f34309ae3978d5dfed9402b6011dbf3..a1d34e12f29a69b57bf5aa7d399d9115db1a6488 100644 (file)
@@ -287,7 +287,7 @@ Multiple modules
 * New function `tornado.options.add_parse_callback` schedules a callback
   to be run after the command line or config file has been parsed.  The
   keyword argument ``final=False`` can be used on either parsing function
-  to supress these callbacks.
+  to suppress these callbacks.
 * `tornado.options.define` now takes a ``callback`` argument.  This callback
   will be run with the new value whenever the option is changed.  This is
   especially useful for options that set other options, such as by reading
index 95273a360477f084e5a4e513d0f969b45c8048df..8921a051fea216b3e574eec75d54cdb8ea089d76 100644 (file)
@@ -77,7 +77,7 @@ class HTTPServer(TCPServer, Configurable,
        ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
        ssl_ctx.load_cert_chain(os.path.join(data_dir, "mydomain.crt"),
                                os.path.join(data_dir, "mydomain.key"))
-       HTTPServer(applicaton, ssl_options=ssl_ctx)
+       HTTPServer(application, ssl_options=ssl_ctx)
 
     `HTTPServer` initialization follows one of three patterns (the
     initialization methods are defined on `tornado.tcpserver.TCPServer`):
index 654afc021e6e818b4d6900dfc2b23ba7c43f4de3..6b1e186c2a97b6d39e47b48e7b7d279b875407d8 100644 (file)
@@ -177,7 +177,7 @@ class LogFormatter(logging.Formatter):
             # bytestrings.  This is a bit of a hacky place to do this, but
             # it's worth it since the encoding errors that would otherwise
             # result are so useless (and tornado is fond of using utf8-encoded
-            # byte strings whereever possible).
+            # byte strings wherever possible).
             record.message = _safe_unicode(message)
         except Exception as e:
             record.message = "Bad message (%r): %r" % (e, record.__dict__)
index 8281f39aaeb5657cb7519ce178620be53b2ec9cf..140bc3101b78ef901883922563fab6e6cbb603be 100644 (file)
@@ -607,7 +607,7 @@ class SyncHTTPClientTest(unittest.TestCase):
             self.server.stop()
             # Delay the shutdown of the IOLoop by one iteration because
             # the server may still have some cleanup work left when
-            # the client finishes with the response (this is noticable
+            # the client finishes with the response (this is noticeable
             # with http/2, which leaves a Future with an unexamined
             # StreamClosedError on the loop).
             self.server_ioloop.add_callback(self.server_ioloop.stop)
index 942e33c2ccecfb01073c6c379977019f17fb7cab..5b9bd9cc744d5b335e1ee14b3ea136cb201e2d78 100644 (file)
@@ -414,7 +414,7 @@ class TestIOLoop(AsyncTestCase):
 
     def test_spawn_callback(self):
         # An added callback runs in the test's stack_context, so will be
-        # re-arised in wait().
+        # re-raised in wait().
         self.io_loop.add_callback(lambda: 1 / 0)
         with self.assertRaises(ZeroDivisionError):
             self.wait()