Skip to content

Commit 6370199

Browse files
minho42carltongibson
authored andcommitted
Fix typos (#1322)
1 parent 2486738 commit 6370199

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ https://channels.readthedocs.io/en/latest/releases
3838
------------------
3939

4040
* Django middleware is now cached rather than instantiated per request
41-
resulting in a sigificant speed improvement
41+
resulting in a significant speed improvement
4242

4343
* ChannelServerLiveTestCase now serves static files again
4444

channels/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def __call__(self, receive, send):
4040
"""
4141
Dispatches incoming messages to type-based handlers asynchronously.
4242
"""
43-
# Initalize channel layer
43+
# Initialize channel layer
4444
self.channel_layer = get_channel_layer(self.channel_layer_alias)
4545
if self.channel_layer is not None:
4646
self.channel_name = await self.channel_layer.new_channel()

channels/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def handle(self, body):
235235
)
236236
response = http.HttpResponseBadRequest()
237237
except RequestTimeout:
238-
# Parsing the rquest failed, so the response is a Request Timeout error
238+
# Parsing the request failed, so the response is a Request Timeout error
239239
response = HttpResponse("408 Request Timeout (upload too slow)", status=408)
240240
except RequestAborted:
241241
# Client closed connection on us mid request. Abort!

channels/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def compile_capacities(self, channel_capacity):
112112
"""
113113
result = []
114114
for pattern, value in channel_capacity.items():
115-
# If they passed in a precompiled regex, leave it, else intepret
115+
# If they passed in a precompiled regex, leave it, else interpret
116116
# it as a glob.
117117
if hasattr(pattern, "match"):
118118
result.append((pattern, value))

docs/asgi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Channels and Daphne are built upon, designed to untie Channels apps from a
77
specific application server and provide a common way to write application
88
and middleware code.
99

10-
It's a spiritual successor to WSGI, designed not only run in an asychronous
10+
It's a spiritual successor to WSGI, designed not only run in an asynchronous
1111
fashion via ``asyncio``, but also supporting multiple protocols.
1212

1313
The full ASGI spec can be found at http://asgi.readthedocs.io

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ your environment::
7474
pip install -e .[tests]
7575

7676
Note the ``[tests]`` section there; that tells ``pip`` that you want to install
77-
the ``tests`` extra, which will bring in testing depedencies like
77+
the ``tests`` extra, which will bring in testing dependencies like
7878
``pytest-django``.
7979

8080
Then, you can run the tests::

docs/one-to-two.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Full Async
8282
Channels 2 is also built on a fundamental async foundation, and all servers
8383
are actually running an asynchronous event loop and only jumping to synchronous
8484
code when you interact with the Django view system or ORM. That means that
85-
you, too, can write fully asychronous code if you wish.
85+
you, too, can write fully asynchronous code if you wish.
8686

8787
It's not a requirement, but it's there if you need it. We also provide
8888
convenience methods that let you jump between synchronous and asynchronous

docs/releases/2.1.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Bugfixes & Small Changes
88
------------------------
99

1010
* Django middleware is now cached rather than instantiated per request
11-
resulting in a sigificant speed improvement. Some middleware took seconds to
11+
resulting in a significant speed improvement. Some middleware took seconds to
1212
load and as a result Channels was unusable for HTTP serving before.
1313

1414
* ChannelServerLiveTestCase now serves static files again.

docs/support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ environments.
3232
First off, try changing your production environment to see if that helps - for example, if you have Nginx/Apache/etc.
3333
between browsers and Channels, try going direct to the Python server and see if that fixes things. Turn SSL off if you
3434
have it on. Try from different browsers and internet connections. WebSockets are notoriously hard to debug already,
35-
and so you should expect some level of akwardness from any project involving them.
35+
and so you should expect some level of awkwardness from any project involving them.
3636

3737
Next, check package versions between your local and remote environments. You'd be surprised how easy it is to forget
3838
to upgrade something!

docs/topics/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ applications that serve them::
130130

131131
ChannelNameRouter({
132132
"thumbnails-generate": some_app,
133-
"thunbnails-delete": some_other_app,
133+
"thumbnails-delete": some_other_app,
134134
})

0 commit comments

Comments
 (0)