]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fixed some typos
authorLee Kyoung chan <leekchan@gmail.com>
Thu, 11 Sep 2014 05:37:43 +0000 (14:37 +0900)
committerLee Kyoung chan <leekchan@gmail.com>
Thu, 11 Sep 2014 05:37:43 +0000 (14:37 +0900)
tornado/auth.py
tornado/ioloop.py
tornado/iostream.py
tornado/platform/twisted.py
tornado/process.py
tornado/stack_context.py
tornado/tcpclient.py
tornado/util.py

index c503442a5d4e200a953717524c2ebaf8b3e9f366..ac2fd0d198af06bac288c64421fc099a634fdde1 100644 (file)
@@ -333,7 +333,7 @@ class OAuthMixin(object):
 
         The ``callback_uri`` may be omitted if you have previously
         registered a callback URI with the third-party service.  For
-        some sevices (including Friendfeed), you must use a
+        some services (including Friendfeed), you must use a
         previously-registered callback URI and cannot specify a
         callback via this method.
 
index 38cb20e1dc7594809f38975e99ecdac548f93db1..03193865bc0c811e089068ca352b33bbf7720c85 100644 (file)
@@ -197,7 +197,7 @@ class IOLoop(Configurable):
 
         An `IOLoop` automatically becomes current for its thread
         when it is started, but it is sometimes useful to call
-        `make_current` explictly before starting the `IOLoop`,
+        `make_current` explicitly before starting the `IOLoop`,
         so that code run at startup time can find the right
         instance.
         """
index ae4bc3d78145ee91012dc494a16deaa9b91cb301..eced6d6482bd017efff1c27c3dd61d5638df3957 100644 (file)
@@ -554,7 +554,7 @@ class BaseIOStream(object):
             # Pretend to have a pending callback so that an EOF in
             # _read_to_buffer doesn't trigger an immediate close
             # callback.  At the end of this method we'll either
-            # estabilsh a real pending callback via
+            # establish a real pending callback via
             # _read_from_buffer or run the close callback.
             #
             # We need two try statements here so that
index b271dfcef17506819fb7be799b56012a8c8bf529..27d991cdb3733e06fe332c53f9dcc235ebd08061 100644 (file)
@@ -141,7 +141,7 @@ class TornadoDelayedCall(object):
 class TornadoReactor(PosixReactorBase):
     """Twisted reactor built on the Tornado IOLoop.
 
-    Since it is intented to be used in applications where the top-level
+    Since it is intended to be used in applications where the top-level
     event loop is ``io_loop.start()`` rather than ``reactor.run()``,
     it is implemented a little differently than other Twisted reactors.
     We override `mainLoop` instead of `doIteration` and must implement
index a74f4acecee15a4bbdc1a004275ba82c9ce46660..cea3dbd01d54b32d00f28595abc86a97052cbbd9 100644 (file)
@@ -39,7 +39,7 @@ from tornado.util import errno_from_exception
 try:
     import multiprocessing
 except ImportError:
-    # Multiprocessing is not availble on Google App Engine.
+    # Multiprocessing is not available on Google App Engine.
     multiprocessing = None
 
 try:
index 2e845ab272f1d4f4dcce217cfd3f16d665385038..2c0d9ee7d6450de14ca29ec4f8cb29807fcd6e99 100644 (file)
@@ -41,13 +41,13 @@ Example usage::
             sys.exit(1)
 
     with StackContext(die_on_error):
-        # Any exception thrown here *or in callback and its desendents*
+        # Any exception thrown here *or in callback and its descendants*
         # will cause the process to exit instead of spinning endlessly
         # in the ioloop.
         http_client.fetch(url, callback)
     ioloop.start()
 
-Most applications shouln't have to work with `StackContext` directly.
+Most applications shouldn't have to work with `StackContext` directly.
 Here are a few rules of thumb for when it's necessary:
 
 * If you're writing an asynchronous library that doesn't rely on a
index d49eb5cd60b38fe61fb8e46b2a06713fe7264c4e..0abbea200584bf87ef3c9df0951614be8ebb5d19 100644 (file)
@@ -163,7 +163,7 @@ class TCPClient(object):
             functools.partial(self._create_stream, max_buffer_size))
         af, addr, stream = yield connector.start()
         # TODO: For better performance we could cache the (af, addr)
-        # information here and re-use it on sbusequent connections to
+        # information here and re-use it on subsequent connections to
         # the same host. (http://tools.ietf.org/html/rfc6555#section-4.2)
         if ssl_options is not None:
             stream = yield stream.start_tls(False, ssl_options=ssl_options,
index 367bad9d3708639ff4599e45b4a4d45848bfd5a1..34c4b072c49bb83cc80e38e00dcaca16174ab12d 100644 (file)
@@ -155,7 +155,7 @@ def errno_from_exception(e):
     """Provides the errno from an Exception object.
 
     There are cases that the errno attribute was not set so we pull
-    the errno out of the args but if someone instatiates an Exception
+    the errno out of the args but if someone instantiates an Exception
     without any args you will get a tuple error. So this function
     abstracts all that behavior to give you a safe way to get the
     errno.
@@ -203,7 +203,7 @@ class Configurable(object):
             impl = cls
         args.update(kwargs)
         instance = super(Configurable, cls).__new__(impl)
-        # initialize vs __init__ chosen for compatiblity with AsyncHTTPClient
+        # initialize vs __init__ chosen for compatibility with AsyncHTTPClient
         # singleton magic.  If we get rid of that we can switch to __init__
         # here too.
         instance.initialize(**args)