summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Gates <tim.gates@iress.com>2020-03-01 19:18:23 +1100
committerTim Gates <tim.gates@iress.com>2020-03-01 19:18:23 +1100
commit500cccf7b32af4ef65fe5da8eab8d5206cb0fdac (patch)
tree3ddf1872cddc3b1dc17b3a28526d8d9a583de9ab
parent53dcae9a799e6389dad021e8ba863fe5021d182e (diff)
downloadwaitress-500cccf7b32af4ef65fe5da8eab8d5206cb0fdac.tar.gz
Fix simple typo: seperated -> separated
There is a small typo in waitress/parser.py. Should read `separated` rather than `seperated`.
-rw-r--r--waitress/parser.py4
-rw-r--r--waitress/tests/test_wasyncore.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/waitress/parser.py b/waitress/parser.py
index fef8a3d..53072b5 100644
--- a/waitress/parser.py
+++ b/waitress/parser.py
@@ -224,8 +224,8 @@ class HTTPRequestParser(object):
value = value.strip(b" \t")
key1 = tostr(key.upper().replace(b"-", b"_"))
# If a header already exists, we append subsequent values
- # seperated by a comma. Applications already need to handle
- # the comma seperated values, as HTTP front ends might do
+ # separated by a comma. Applications already need to handle
+ # the comma separated values, as HTTP front ends might do
# the concatenation for you (behavior specified in RFC2616).
try:
headers[key1] += tostr(b", " + value)
diff --git a/waitress/tests/test_wasyncore.py b/waitress/tests/test_wasyncore.py
index 9c23509..42cd306 100644
--- a/waitress/tests/test_wasyncore.py
+++ b/waitress/tests/test_wasyncore.py
@@ -125,7 +125,7 @@ def gc_collect(): # pragma: no cover
In non-CPython implementations of Python, this is needed because timely
deallocation is not guaranteed by the garbage collector. (Even in CPython
this can be the case in case of reference cycles.) This means that __del__
- methods may be called later than expected and weakrefs may remain alive for
+ methods may be called later than expected and weakref may remain alive for
longer than expected. This function tries its best to force all garbage
objects to disappear.
"""