Skip to content

Commit a6af6f2

Browse files
committed
merged upstream/master
2 parents db8c509 + 45157ec commit a6af6f2

File tree

10 files changed

+37
-37
lines changed

10 files changed

+37
-37
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def post(self):
361361
keep_blank_values=True,
362362
encoding=content_charset)
363363

364-
supported_tranfer_encoding = {
364+
supported_transfer_encoding = {
365365
'base64': binascii.a2b_base64,
366366
'quoted-printable': binascii.a2b_qp
367367
}
@@ -381,10 +381,10 @@ def post(self):
381381
out.add(field.name, ff)
382382
else:
383383
value = field.value
384-
if transfer_encoding in supported_tranfer_encoding:
384+
if transfer_encoding in supported_transfer_encoding:
385385
# binascii accepts bytes
386386
value = value.encode('utf-8')
387-
value = supported_tranfer_encoding[
387+
value = supported_transfer_encoding[
388388
transfer_encoding](value)
389389
out.add(field.name, value)
390390

@@ -1182,7 +1182,7 @@ def __init__(self, method, handler, name, path):
11821182
self._path = path
11831183

11841184
def match(self, path):
1185-
# string comparsion is about 10 times faster than regexp matching
1185+
# string comparison is about 10 times faster than regexp matching
11861186
if self._path == path:
11871187
return {}
11881188
else:

aiohttp/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Async gunicorn worker for auihttp.wen.Application."""
1+
"""Async gunicorn worker for aiohttp.web"""
22
__all__ = ['GunicornWebWorker']
33

44
import asyncio

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Server example::
8080
loop.run_until_complete(init(loop))
8181
try:
8282
loop.run_forever()
83-
except KeyboardInterrrupt:
83+
except KeyboardInterrupt:
8484
pass
8585

8686

@@ -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: 16 additions & 16 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

@@ -351,13 +351,13 @@ StreamResponse
351351

352352
.. attribute:: chunked
353353

354-
Read-only property, incicates if chunked encoding is on.
354+
Read-only property, indicates if chunked encoding is on.
355355

356356
Can be enabled by :meth:`enable_chunked_encoding` call.
357357

358358
.. method:: enable_chunked_encoding
359359

360-
Enables :attr:`chunked` enacoding for response. There are no ways to
360+
Enables :attr:`chunked` encoding for response. There are no ways to
361361
disable it back. With enabled :attr:`chunked` encoding each `write()`
362362
operation encoded in separate chunk.
363363

@@ -598,7 +598,7 @@ WebSocketResponse
598598

599599
.. attribute:: protocol
600600

601-
Websocket *subprotocol* choosen after :meth:`start` call.
601+
Websocket *subprotocol* chosen after :meth:`start` call.
602602

603603
May be ``None`` if server and client protocols are
604604
not overlapping.
@@ -607,8 +607,8 @@ WebSocketResponse
607607

608608
Send :const:`~aiohttp.websocket.MSG_PING` to peer.
609609

610-
:param message: optional payload of *ping* messasge,
611-
:class:`str` (coverted to *UTF-8* encdoded bytes)
610+
:param message: optional payload of *ping* message,
611+
:class:`str` (converted to *UTF-8* encoded bytes)
612612
or :class:`bytes`.
613613

614614
:raise RuntimeError: if connections is not started or closing.
@@ -617,8 +617,8 @@ WebSocketResponse
617617

618618
Send *unsolicited* :const:`~aiohttp.websocket.MSG_PONG` to peer.
619619

620-
:param message: optional payload of *pong* messasge,
621-
:class:`str` (coverted to *UTF-8* encdoded bytes)
620+
:param message: optional payload of *pong* message,
621+
:class:`str` (converted to *UTF-8* encoded bytes)
622622
or :class:`bytes`.
623623

624624
:raise RuntimeError: if connections is not started or closing.
@@ -658,8 +658,8 @@ WebSocketResponse
658658

659659
:param int code: closing code
660660

661-
:param message: optional payload of *pong* messasge,
662-
:class:`str` (coverted to *UTF-8* encdoded bytes)
661+
:param message: optional payload of *pong* message,
662+
:class:`str` (converted to *UTF-8* encoded bytes)
663663
or :class:`bytes`.
664664

665665
:raise RuntimeError: if connection is not started or closing
@@ -668,7 +668,7 @@ WebSocketResponse
668668

669669
A :ref:`coroutine<coroutine>` that waits for socket handshake
670670
finish and raises
671-
:exc:`~aiohttp.errors.WebSocketDisconnectedError` at the end.
671+
:exc:`~aiohttp.errors.WSClientDisconnectedError` at the end.
672672

673673
Use the method only from write-only tasks, please call one of
674674
:meth:`receive_str`, :meth:`receive_bytes` or
@@ -678,7 +678,7 @@ WebSocketResponse
678678

679679
.. method:: receive_msg()
680680

681-
A :ref:`coroutine<coroutine>` that waits upcomming *data*
681+
A :ref:`coroutine<coroutine>` that waits upcoming *data*
682682
message from peer and returns it.
683683

684684
The coroutine implicitly handles
@@ -690,14 +690,14 @@ WebSocketResponse
690690
It process *ping-pong game* and performs *closing handshake* internally.
691691

692692
After websocket closing raises
693-
:exc:`~aiohttp.errors.WebSocketDisconnectedError` with
693+
:exc:`~aiohttp.errors.WSClientDisconnectedError` with
694694
connection closing data.
695695

696696
:return: :class:`~aiohttp.websocket.Message`
697697

698698
:raise RuntimeError: if connection is not started
699699

700-
:raise: :exc:`~aiohttp.errors.WebSocketDisconnectedError` on closing.
700+
:raise: :exc:`~aiohttp.errors.WSClientDisconnectedError` on closing.
701701

702702
.. method:: receive_str()
703703

@@ -887,7 +887,7 @@ Router is any object that implements :class:`AbstractRouter` interface.
887887

888888
.. class:: UrlDispatcher()
889889

890-
Straightforward url-mathing router, implements
890+
Straightforward url-matching router, implements
891891
:class:`collections.abc.Mapping` for access to *named routes*.
892892

893893
Before running :class:`Application` you should fill *route
@@ -985,7 +985,7 @@ passing it into *template engine* for example::
985985

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

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

991991

0 commit comments

Comments
 (0)