* ``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
# 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()
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:
)
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
.. 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"],
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
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()
# 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
# 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