No text file relying on significant trailing whitespace is robust under

modification.  Removed the need for that.
This commit is contained in:
Tim Peters 2001-01-13 19:16:21 +00:00
parent b2825205a2
commit 5ceadc8cba

View file

@ -25,19 +25,19 @@ request. This diagram details these state transitions:
v v
Unread-response [Response-headers-read] Unread-response [Response-headers-read]
|\____________________ |\____________________
| \ | |
| response.read() | putrequest() | response.read() | putrequest()
v v v v
Idle Req-started-unread-response Idle Req-started-unread-response
_______/| ______/|
/ | / |
response.read() | | ( putheader() )* endheaders() response.read() | | ( putheader() )* endheaders()
v v v v
Request-started Req-sent-unread-response Request-started Req-sent-unread-response
| |
| response.read() | response.read()
v v
Request-sent Request-sent
This diagram presents the following rules: This diagram presents the following rules:
-- a second request may not be started until {response-headers-read} -- a second request may not be started until {response-headers-read}
@ -566,7 +566,7 @@ class FakeSocket:
interface of a real socket. It only supports modes 'r' and interface of a real socket. It only supports modes 'r' and
'rb' and the bufsize argument is ignored. 'rb' and the bufsize argument is ignored.
The returned object contains *all* of the file data The returned object contains *all* of the file data
""" """
if mode != 'r' and mode != 'rb': if mode != 'r' and mode != 'rb':
raise UnimplementedFileMode() raise UnimplementedFileMode()
@ -719,11 +719,11 @@ if hasattr(socket, 'ssl'):
Python 1.5.2 did not have an HTTPS class, but it defined an Python 1.5.2 did not have an HTTPS class, but it defined an
interface for sending http requests that is also useful for interface for sending http requests that is also useful for
https. https.
""" """
_connection_class = HTTPSConnection _connection_class = HTTPSConnection
class HTTPException(Exception): class HTTPException(Exception):
pass pass