Skip to content

Commit

Permalink
Fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
leekchan committed Sep 11, 2014
1 parent 15c82cb commit 61e87cd
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tornado/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def authorize_redirect(self, callback_uri=None, extra_params=None,
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.
Expand Down
2 changes: 1 addition & 1 deletion tornado/ioloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def make_current(self):
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.
"""
Expand Down
2 changes: 1 addition & 1 deletion tornado/iostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def _read_to_buffer_loop(self):
# 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
Expand Down
2 changes: 1 addition & 1 deletion tornado/platform/twisted.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def active(self):
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
Expand Down
2 changes: 1 addition & 1 deletion tornado/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
try:
import multiprocessing
except ImportError:
# Multiprocessing is not availble on Google App Engine.
# Multiprocessing is not available on Google App Engine.
multiprocessing = None

try:
Expand Down
4 changes: 2 additions & 2 deletions tornado/stack_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def die_on_error():
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
Expand Down
2 changes: 1 addition & 1 deletion tornado/tcpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def connect(self, host, port, af=socket.AF_UNSPEC, ssl_options=None,
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,
Expand Down
4 changes: 2 additions & 2 deletions tornado/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -203,7 +203,7 @@ def __new__(cls, **kwargs):
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)
Expand Down

0 comments on commit 61e87cd

Please sign in to comment.