diff options
author | Josiah Carlson <josiah.carlson@gmail.com> | 2008-07-07 04:23:14 (GMT) |
---|---|---|
committer | Josiah Carlson <josiah.carlson@gmail.com> | 2008-07-07 04:23:14 (GMT) |
commit | 1893ce7a97e5a551f77e85ac6d128854b49191b7 (patch) | |
tree | d8aaad5fc9e0e4fc30183825e13f2abafbeb09d4 /Doc/library/asynchat.rst | |
parent | d74900ebb5a22b387b49684990da1925e1d6bdc9 (diff) | |
download | cpython-1893ce7a97e5a551f77e85ac6d128854b49191b7.zip cpython-1893ce7a97e5a551f77e85ac6d128854b49191b7.tar.gz cpython-1893ce7a97e5a551f77e85ac6d128854b49191b7.tar.bz2 |
Fixed documentation to be correct for Py3k.
Diffstat (limited to 'Doc/library/asynchat.rst')
-rw-r--r-- | Doc/library/asynchat.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/asynchat.rst b/Doc/library/asynchat.rst index ff6432e..a8dd7e4 100644 --- a/Doc/library/asynchat.rst +++ b/Doc/library/asynchat.rst @@ -5,7 +5,7 @@ .. module:: asynchat :synopsis: Support for asynchronous command/response protocols. .. moduleauthor:: Sam Rushing <rushing@nightmare.com> -.. sectionauthor:: Steve Holden <sholden@holdenweb.com> +.. sectionauthor:: Steve Holden <sholden@holdenweb.com> This module builds on the :mod:`asyncore` infrastructure, simplifying @@ -283,8 +283,8 @@ any extraneous data sent by the web client are ignored. :: self.addr = addr self.sessions = sessions self.ibuffer = [] - self.obuffer = "" - self.set_terminator("\r\n\r\n") + self.obuffer = b"" + self.set_terminator(b"\r\n\r\n") self.reading_headers = True self.handling = False self.cgi_data = None @@ -299,7 +299,7 @@ any extraneous data sent by the web client are ignored. :: self.reading_headers = False self.parse_headers("".join(self.ibuffer)) self.ibuffer = [] - if self.op.upper() == "POST": + if self.op.upper() == b"POST": clen = self.headers.getheader("content-length") self.set_terminator(int(clen)) else: @@ -308,7 +308,7 @@ any extraneous data sent by the web client are ignored. :: self.handle_request() elif not self.handling: self.set_terminator(None) # browsers sometimes over-send - self.cgi_data = parse(self.headers, "".join(self.ibuffer)) + self.cgi_data = parse(self.headers, b"".join(self.ibuffer)) self.handling = True self.ibuffer = [] self.handle_request() |