Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
marc authored and marc committed May 15, 2020
1 parent 36c9a4c commit 89a5eec
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/releases/v2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Backwards-incompatible changes

* ``IOStream.write`` now works correctly when given an empty string.
* ``IOStream.read_until`` (and ``read_until_regex``) now perform better
when there is a lot of buffered data, which improves peformance of
when there is a lot of buffered data, which improves performance of
``SimpleAsyncHTTPClient`` when downloading files with lots of
chunks.
* `.SSLIOStream` now works correctly when ``ssl_version`` is set to
Expand Down
2 changes: 1 addition & 1 deletion tornado/http1connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def finish(self) -> None:
# chunk at this point we'd need to change the
# interface to make finish() a coroutine.
raise ValueError(
"decompressor.flush returned data; possile truncated input"
"decompressor.flush returned data; possible truncated input"
)
return self._delegate.finish()

Expand Down
4 changes: 2 additions & 2 deletions tornado/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def close_all_connections(self) -> None:
This method does not currently close open websocket connections.
Note that this method is a coroutine and must be caled with ``await``.
Note that this method is a coroutine and must be called with ``await``.
"""
while self._connections:
Expand Down Expand Up @@ -346,7 +346,7 @@ def _apply_xheaders(self, headers: httputil.HTTPHeaders) -> None:
)
if proto_header:
# use only the last proto entry if there is more than one
# TODO: support trusting mutiple layers of proxied protocol
# TODO: support trusting multiple layers of proxied protocol
proto_header = proto_header.split(",")[-1].strip()
if proto_header in ("http", "https"):
self.protocol = proto_header
Expand Down
2 changes: 1 addition & 1 deletion tornado/httputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class HTTPMessageDelegate(object):
.. versionadded:: 4.0
"""

# TODO: genericize this class to avoid exposing the Union.
# TODO: generalize this class to avoid exposing the Union.
def headers_received(
self,
start_line: Union["RequestStartLine", "ResponseStartLine"],
Expand Down
2 changes: 1 addition & 1 deletion tornado/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class _Mockable(object):
As of ``mock`` version 1.0.1, when an object uses ``__getattr__``
hooks instead of ``__dict__``, ``patch.__exit__`` tries to delete
the attribute it set instead of setting a new one (assuming that
the object does not catpure ``__setattr__``, so the patch
the object does not capture ``__setattr__``, so the patch
created a new attribute in ``__dict__``).
_Mockable's getattr and setattr pass through to the underlying
Expand Down
2 changes: 1 addition & 1 deletion tornado/platform/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def get_event_loop(self) -> asyncio.AbstractEventLoop:
try:
return super().get_event_loop()
except (RuntimeError, AssertionError):
# This was an AssertionError in python 3.4.2 (which ships with debian jessie)
# This was an AssertionError in Python 3.4.2 (which ships with Debian Jessie)
# and changed to a RuntimeError in 3.4.3.
# "There is no current event loop in thread %r"
loop = self.new_event_loop()
Expand Down
2 changes: 1 addition & 1 deletion tornado/test/ioloop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def sync_func(self_event, other_event):

# Go through an async wrapper to ensure that the result of
# run_in_executor works with await and not just gen.coroutine
# (simply passing the underlying concurrrent future would do that).
# (simply passing the underlying concurrent future would do that).
async def async_wrapper(self_event, other_event):
return await IOLoop.current().run_in_executor(
None, sync_func, self_event, other_event
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ basepython =
# In theory, it doesn't matter which python version is used here.
# In practice, things like changes to the ast module can alter
# the outputs of the tools (especially where exactly the
# linter warning-supression comments go), so we specify a
# linter warning-suppression comments go), so we specify a
# python version for these builds.
docs: python3.8
lint: python3.8
Expand Down

0 comments on commit 89a5eec

Please sign in to comment.