Skip to content

Commit

Permalink
Fix typos (#6464)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored Dec 28, 2021
1 parent 24af37c commit 9eba10c
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGES/3994.misc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
correct the names of some fuctions in ``tests/test_client_functional.py``
correct the names of some functions in ``tests/test_client_functional.py``
2 changes: 1 addition & 1 deletion CHANGES/5494.misc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Made sure to always close most of file descriptors and release other
resouces in tests. Started ignoring ``ResourceWarning``s in pytest for
resources in tests. Started ignoring ``ResourceWarning``s in pytest for
warnings that are hard to track.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Workflow is pretty straightforward:
.. important::

Please open the "`contributing <https://docs.aiohttp.org/en/stable/contributing.html>`_"
documentation page to get detailed informations about all steps.
documentation page to get detailed information about all steps.

.. _GitHub: https://github.com/aio-libs/aiohttp
2 changes: 1 addition & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ class ClientResponse(HeadersMixin):

_connection = None # current connection
_source_traceback = None
# setted up by ClientRequest after ClientResponse object creation
# set up by ClientRequest after ClientResponse object creation
# post-init stage allows to not change ctor signature
_closed = True # to allow __del__ for non-initialized properly response
_released = False
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def _release_waiter(self) -> None:
"""
Iterates over all waiters until one to be released is found.
The one to be released is not finsihed and
The one to be released is not finished and
belongs to a host that has available connections.
"""
if not self._waiters:
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def __bool__(self) -> bool:
def _boundary_value(self) -> str:
"""Wrap boundary parameter value in quotes, if necessary.
Reads self.boundary and returns a unicode sting.
Reads self.boundary and returns a unicode string.
"""
# Refer to RFCs 7231, 7230, 5234.
#
Expand Down
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ and call :meth:`aiohttp.web.WebSocketResponse.close` on all of them in
for ws in request.app['websockets'][user_id]
if not ws.closed]

# Watch out, this will keep us from returing the response
# Watch out, this will keep us from returning the response
# until all are closed
ws_closers and await asyncio.gather(*ws_closers)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def stream():
return mock.Mock()


@pytest.mark.skipif(NO_EXTENSIONS, reason="Extentions available but not imported")
@pytest.mark.skipif(NO_EXTENSIONS, reason="Extensions available but not imported")
def test_c_parser_loaded():
assert "HttpRequestParserC" in dir(aiohttp.http_parser)
assert "HttpResponseParserC" in dir(aiohttp.http_parser)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def protocol():
def get_memory_usage(obj: Any):
objs = [obj]
# Memory leak may be caused by leaked links to same objects.
# Without link counting, [1,2,3] is indistiguishable from [1,2,3,3,3,3,3,3]
# Without link counting, [1,2,3] is indistinguishable from [1,2,3,3,3,3,3,3]
known = defaultdict(int)
known[id(obj)] += 1

Expand Down
4 changes: 2 additions & 2 deletions tests/test_web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,9 @@ def test_force_close() -> None:
def test_set_status_with_reason() -> None:
resp = StreamResponse()

resp.set_status(200, "Everithing is fine!")
resp.set_status(200, "Everything is fine!")
assert 200 == resp.status
assert "Everithing is fine!" == resp.reason
assert "Everything is fine!" == resp.reason


async def test_start_force_close() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tools/cleanup_changes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

# Run me after the backport branch release to cleanup CHANGES records
# that was backported and publiched.
# that was backported and published.

import re
import subprocess
Expand Down

0 comments on commit 9eba10c

Please sign in to comment.