Fix typos and such caught by the pycheckerbot.

This commit is contained in:
Jeremy Hylton 2002-07-16 21:41:43 +00:00
parent c411dbaeee
commit e3252ec6cf
1 changed files with 3 additions and 3 deletions

View File

@ -544,7 +544,7 @@ class HTTPConnection:
else: else:
raise NotConnected() raise NotConnected()
# send the data to the server. if we get a broken pipe, then closesdwu # send the data to the server. if we get a broken pipe, then close
# the socket. we want to reconnect when somebody tries to send again. # the socket. we want to reconnect when somebody tries to send again.
# #
# NOTE: we DO propagate the error, though, because we cannot simply # NOTE: we DO propagate the error, though, because we cannot simply
@ -561,14 +561,14 @@ class HTTPConnection:
def _output(self, s): def _output(self, s):
"""Add a line of output to the current request buffer. """Add a line of output to the current request buffer.
Aassumes that the line does *not* end with \r\n. Assumes that the line does *not* end with \\r\\n.
""" """
self._buffer.append(s) self._buffer.append(s)
def _send_output(self): def _send_output(self):
"""Send the currently buffered request and clear the buffer. """Send the currently buffered request and clear the buffer.
Appends an extra \r\n to the buffer. Appends an extra \\r\\n to the buffer.
""" """
self._buffer.extend(("", "")) self._buffer.extend(("", ""))
msg = "\r\n".join(self._buffer) msg = "\r\n".join(self._buffer)