From: Lee Kyoung chan Date: Thu, 11 Sep 2014 05:37:43 +0000 (+0900) Subject: Fixed some typos X-Git-Tag: v4.1.0b1~95^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e87cd8fc4e05137b71d5e38f42b5d8039c4f14;p=thirdparty%2Ftornado.git Fixed some typos --- diff --git a/tornado/auth.py b/tornado/auth.py index c503442a5..ac2fd0d19 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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. diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 38cb20e1d..03193865b 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -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. """ diff --git a/tornado/iostream.py b/tornado/iostream.py index ae4bc3d78..eced6d648 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -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 diff --git a/tornado/platform/twisted.py b/tornado/platform/twisted.py index b271dfcef..27d991cdb 100644 --- a/tornado/platform/twisted.py +++ b/tornado/platform/twisted.py @@ -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 diff --git a/tornado/process.py b/tornado/process.py index a74f4acec..cea3dbd01 100644 --- a/tornado/process.py +++ b/tornado/process.py @@ -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: diff --git a/tornado/stack_context.py b/tornado/stack_context.py index 2e845ab27..2c0d9ee7d 100644 --- a/tornado/stack_context.py +++ b/tornado/stack_context.py @@ -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 diff --git a/tornado/tcpclient.py b/tornado/tcpclient.py index d49eb5cd6..0abbea200 100644 --- a/tornado/tcpclient.py +++ b/tornado/tcpclient.py @@ -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, diff --git a/tornado/util.py b/tornado/util.py index 367bad9d3..34c4b072c 100644 --- a/tornado/util.py +++ b/tornado/util.py @@ -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)