Skip to content

Commit 97f93c2

Browse files
committed
Typos, typos are everywhere
1 parent c0d04d8 commit 97f93c2

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

aiohttp/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class BaseConnector(object):
5959
:param conn_timeout: (optional) Connect timeout.
6060
:param keepalive_timeout: (optional) Keep-alive timeout.
6161
:param bool share_cookies: Set to True to keep cookies between requests.
62-
:param bool force_close: Set to True to froce close and do reconnect
62+
:param bool force_close: Set to True to force close and do reconnect
6363
after each request (and between redirects).
6464
:param loop: Optional event loop.
6565
"""
@@ -223,7 +223,7 @@ class TCPConnector(BaseConnector):
223223
224224
:param bool verify_ssl: Set to True to check ssl certifications.
225225
:param bool resolve: Set to True to do DNS lookup for host name.
226-
:param familiy: socket address family
226+
:param family: socket address family
227227
:param args: see :class:`BaseConnector`
228228
:param kwargs: see :class:`BaseConnector`
229229
"""

aiohttp/web.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def cookies(self):
281281

282282
@property
283283
def payload(self):
284-
"""Return raw paiload stream."""
284+
"""Return raw payload stream."""
285285
return self._payload
286286

287287
@asyncio.coroutine
@@ -350,7 +350,7 @@ def post(self):
350350
keep_blank_values=True,
351351
encoding=content_charset)
352352

353-
supported_tranfer_encoding = {
353+
supported_transfer_encoding = {
354354
'base64': binascii.a2b_base64,
355355
'quoted-printable': binascii.a2b_qp
356356
}
@@ -370,10 +370,10 @@ def post(self):
370370
out.add(field.name, ff)
371371
else:
372372
value = field.value
373-
if transfer_encoding in supported_tranfer_encoding:
373+
if transfer_encoding in supported_transfer_encoding:
374374
# binascii accepts bytes
375375
value = value.encode('utf-8')
376-
value = supported_tranfer_encoding[
376+
value = supported_transfer_encoding[
377377
transfer_encoding](value)
378378
out.add(field.name, value)
379379

@@ -1171,7 +1171,7 @@ def __init__(self, method, handler, name, path):
11711171
self._path = path
11721172

11731173
def match(self, path):
1174-
# string comparsion is about 10 times faster than regexp matching
1174+
# string comparison is about 10 times faster than regexp matching
11751175
if self._path == path:
11761176
return {}
11771177
else:

docs/client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ information.
261261

262262

263263
Streaming uploads
264-
------------------
264+
-----------------
265265

266266
aiohttp support multiple types of streaming uploads, which allows you to
267267
send large files without reading them into memory.

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Any extra texts (print statements and so on) should be removed.
7474
Tests coverage
7575
--------------
7676

77-
We are stronly keeping our test coverage, please don't make it worse.
77+
We are strongly keeping our test coverage, please don't make it worse.
7878

7979
Use::
8080

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Please feel free to file an issue on `bug tracker
9494
or have some suggestion for library improvement.
9595

9696
The library uses `Travis <https://travis-ci.org/KeepSafe/aiohttp>`_ for
97-
Continious Integration.
97+
Continuous Integration.
9898

9999

100100
Dependencies

docs/multidict.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _aiohttp-multidic:
1+
.. _aiohttp-multidict:
22

33
Multidicts
44
==========
@@ -21,7 +21,7 @@ Immutable proxies (:class:`MultiDictProxy` and
2121
proxied multidict, the view reflects the multidict changes. They are
2222
implement :class:`~collections.abc.Mapping` interface.
2323

24-
Regular mutable (:class:`MultiDict` and :class:`CIMultiDict`) clases
24+
Regular mutable (:class:`MultiDict` and :class:`CIMultiDict`) classes
2525
implement :class:`~collections.abc.MutableMapping` and allow to change
2626
own content.
2727

@@ -40,7 +40,7 @@ insensitive, e.g.::
4040

4141

4242
MultiDict
43-
----------------
43+
---------
4444

4545
.. class:: MultiDict(**kwargs)
4646
MultiDict(mapping, **kwargs)
@@ -93,7 +93,7 @@ MultiDict
9393

9494
.. method:: add(key, value)
9595

96-
Append ``(key, value)`` pair to the dictiaonary.
96+
Append ``(key, value)`` pair to the dictionary.
9797

9898
.. method:: clear()
9999

@@ -173,7 +173,7 @@ MultiDict
173173

174174
.. method:: popitem()
175175

176-
Remove and retun an arbitrary ``(key, value)`` pair from the dictionary.
176+
Remove and return an arbitrary ``(key, value)`` pair from the dictionary.
177177

178178
:meth:`popitem` is useful to destructively iterate over a
179179
dictionary, as often used in set algorithms.
@@ -217,7 +217,7 @@ CIMultiDict
217217
Create a case insensitive multidict instance.
218218

219219
The behavior is the same as of :class:`MultiDict` but key
220-
comparsions are case insensitive, e.g.::
220+
comparisons are case insensitive, e.g.::
221221

222222
>>> dct = CIMultiDict(a='val')
223223
>>> 'A' in dct
@@ -343,7 +343,7 @@ upstr
343343
:class:`CIMultiDict` accepts :class:`str` as *key* argument for dict
344344
lookups but converts it to upper case internally.
345345

346-
For more effective processing it shoult to know if *key* is already upper cased.
346+
For more effective processing it should to know if *key* is already upper cased.
347347

348348
To skip :meth:`~str.upper()` call you may create upper cased string by
349349
hands, e.g::

docs/server.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ of ``GET``, ``POST``, ``PUT`` or ``DELETE`` strings.
7272
Handling GET params
7373
-------------------
7474

75-
Currently aiohttp does not provide automatical parsing of incoming GET
75+
Currently aiohttp does not provide automatic parsing of incoming GET
7676
params. However aiohttp does provide a nice MulitiDict wrapper for
7777
already parsed params.
7878

@@ -119,7 +119,7 @@ GET params.
119119
print("Passed in POST", post_params)
120120
121121
SSL
122-
---------
122+
---
123123

124124
To use asyncio's SSL support, just pass an SSLContext object to the
125125
``create_server`` method of the loop.

docs/web.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ data asynchronously (by ``yield from ws.send_str('data')`` for example).
266266
.. _aiohttp-web-exceptions:
267267
268268
Exceptions
269-
-----------
269+
----------
270270
271271
:mod:`aiohttp.web` defines exceptions for list of *HTTP status codes*.
272272

docs/web_reference.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _aiohttp-web-reference:
22

33
HTTP Server Reference
4-
========================
4+
=====================
55

66
.. highlight:: python
77

@@ -339,13 +339,13 @@ StreamResponse
339339

340340
.. attribute:: chunked
341341

342-
Read-only property, incicates if chunked encoding is on.
342+
Read-only property, indicates if chunked encoding is on.
343343

344344
Can be enabled by :meth:`enable_chunked_encoding` call.
345345

346346
.. method:: enable_chunked_encoding
347347

348-
Enables :attr:`chunked` enacoding for response. There are no ways to
348+
Enables :attr:`chunked` encoding for response. There are no ways to
349349
disable it back. With enabled :attr:`chunked` encoding each `write()`
350350
operation encoded in separate chunk.
351351

@@ -586,7 +586,7 @@ WebSocketResponse
586586

587587
.. attribute:: protocol
588588

589-
Websocket *subprotocol* choosen after :meth:`start` call.
589+
Websocket *subprotocol* chosen after :meth:`start` call.
590590

591591
May be ``None`` if server and client protocols are
592592
not overlapping.
@@ -595,8 +595,8 @@ WebSocketResponse
595595

596596
Send :const:`~aiohttp.websocket.MSG_PING` to peer.
597597

598-
:param message: optional payload of *ping* messasge,
599-
:class:`str` (coverted to *UTF-8* encdoded bytes)
598+
:param message: optional payload of *ping* message,
599+
:class:`str` (converted to *UTF-8* encoded bytes)
600600
or :class:`bytes`.
601601

602602
:raise RuntimeError: if connections is not started or closing.
@@ -605,8 +605,8 @@ WebSocketResponse
605605

606606
Send *unsolicited* :const:`~aiohttp.websocket.MSG_PONG` to peer.
607607

608-
:param message: optional payload of *pong* messasge,
609-
:class:`str` (coverted to *UTF-8* encdoded bytes)
608+
:param message: optional payload of *pong* message,
609+
:class:`str` (converted to *UTF-8* encoded bytes)
610610
or :class:`bytes`.
611611

612612
:raise RuntimeError: if connections is not started or closing.
@@ -646,8 +646,8 @@ WebSocketResponse
646646

647647
:param int code: closing code
648648

649-
:param message: optional payload of *pong* messasge,
650-
:class:`str` (coverted to *UTF-8* encdoded bytes)
649+
:param message: optional payload of *pong* message,
650+
:class:`str` (converted to *UTF-8* encoded bytes)
651651
or :class:`bytes`.
652652

653653
:raise RuntimeError: if connection is not started or closing
@@ -666,7 +666,7 @@ WebSocketResponse
666666

667667
.. method:: receive_msg()
668668

669-
A :ref:`coroutine<coroutine>` that waits upcomming *data*
669+
A :ref:`coroutine<coroutine>` that waits upcoming *data*
670670
message from peer and returns it.
671671

672672
The coroutine implicitly handles
@@ -875,7 +875,7 @@ Router is any object that implements :class:`AbstractRouter` interface.
875875

876876
.. class:: UrlDispatcher()
877877

878-
Straightforward url-mathing router, implements
878+
Straightforward url-matching router, implements
879879
:class:`collections.abc.Mapping` for access to *named routes*.
880880

881881
Before running :class:`Application` you should fill *route
@@ -973,7 +973,7 @@ passing it into *template engine* for example::
973973

974974
url = app.router['route_name'].url(query={'a': 1, 'b': 2})
975975

976-
There are three conctrete route classes:* :class:`DynamicRoute` for
976+
There are three concrete route classes:* :class:`DynamicRoute` for
977977
urls with :ref:`variable pathes<aiohttp-web-variable-handler>` spec.
978978

979979

0 commit comments

Comments
 (0)