From: Ben Darnell Date: Sun, 23 Jul 2017 18:48:37 +0000 (-0400) Subject: Fix various typos in comments X-Git-Tag: v5.0.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4094a0c2a7cddc654381c162ee7786d4bf8453b;p=thirdparty%2Ftornado.git Fix various typos in comments --- diff --git a/docs/auth.rst b/docs/auth.rst index 0da249cfb..dfbe3ed98 100644 --- a/docs/auth.rst +++ b/docs/auth.rst @@ -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 diff --git a/docs/releases/v3.0.0.rst b/docs/releases/v3.0.0.rst index 1dd01d629..a1d34e12f 100644 --- a/docs/releases/v3.0.0.rst +++ b/docs/releases/v3.0.0.rst @@ -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 diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 95273a360..8921a051f 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -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`): diff --git a/tornado/log.py b/tornado/log.py index 654afc021..6b1e186c2 100644 --- a/tornado/log.py +++ b/tornado/log.py @@ -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__) diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py index 8281f39aa..140bc3101 100644 --- a/tornado/test/httpclient_test.py +++ b/tornado/test/httpclient_test.py @@ -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) diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py index 942e33c2c..5b9bd9cc7 100644 --- a/tornado/test/ioloop_test.py +++ b/tornado/test/ioloop_test.py @@ -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()