summaryrefslogtreecommitdiffstats
path: root/Doc/library/asynchat.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-06 19:10:41 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-06 19:10:41 (GMT)
commit5e028ae09e3181a1bebc402a9a414b8a79845090 (patch)
tree174f4aea9af25e3f583f41a1f07e8945f14da955 /Doc/library/asynchat.rst
parent07fbd7847356c704ef30f9a4230a60281422dd39 (diff)
downloadcpython-5e028ae09e3181a1bebc402a9a414b8a79845090.zip
cpython-5e028ae09e3181a1bebc402a9a414b8a79845090.tar.gz
cpython-5e028ae09e3181a1bebc402a9a414b8a79845090.tar.bz2
Fix empty strings to empty bytes objects.
Diffstat (limited to 'Doc/library/asynchat.rst')
-rw-r--r--Doc/library/asynchat.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/asynchat.rst b/Doc/library/asynchat.rst
index 55c61d7..adbd3be 100644
--- a/Doc/library/asynchat.rst
+++ b/Doc/library/asynchat.rst
@@ -56,8 +56,8 @@ connection requests.
have only one method, :meth:`more`, which should return data to be
transmitted on the channel.
The producer indicates exhaustion (*i.e.* that it contains no more data) by
- having its :meth:`more` method return the empty string. At this point the
- :class:`async_chat` object removes the producer from the fifo and starts
+ having its :meth:`more` method return the empty bytes object. At this point
+ the :class:`async_chat` object removes the producer from the fifo and starts
using the next producer, if any. When the producer fifo is empty the
:meth:`handle_write` method does nothing. You use the channel object's
:meth:`set_terminator` method to describe how to recognize the end of, or
@@ -221,7 +221,7 @@ any extraneous data sent by the web client are ignored. ::
def found_terminator(self):
if self.reading_headers:
self.reading_headers = False
- self.parse_headers("".join(self.ibuffer))
+ self.parse_headers(b"".join(self.ibuffer))
self.ibuffer = []
if self.op.upper() == b"POST":
clen = self.headers.getheader("content-length")