summaryrefslogtreecommitdiffstats
path: root/Doc/library/asynchat.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-06 19:11:33 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-06 19:11:33 (GMT)
commit303718c3d7b650f946a6364f50c9048a1100535b (patch)
treecd3d098baf17dbe989833ffeed8e8f53d2c622fa /Doc/library/asynchat.rst
parentf317cb7a2054c878f98aab38411d43fb179e53fd (diff)
parent5e028ae09e3181a1bebc402a9a414b8a79845090 (diff)
downloadcpython-303718c3d7b650f946a6364f50c9048a1100535b.zip
cpython-303718c3d7b650f946a6364f50c9048a1100535b.tar.gz
cpython-303718c3d7b650f946a6364f50c9048a1100535b.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 7b81074..c6fa061 100644
--- a/Doc/library/asynchat.rst
+++ b/Doc/library/asynchat.rst
@@ -61,8 +61,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
@@ -226,7 +226,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")