diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2008-12-15 03:00:50 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2008-12-15 03:00:50 (GMT) |
commit | 236156f5007c5883871cfd5d0a93d61bb0e2b16e (patch) | |
tree | 46d6b07fa3e59f5940a2faa2222913fd1e5c7c4e /Lib | |
parent | 84f71d0fedf7f083449cc043313a295f91c9aa85 (diff) | |
download | cpython-236156f5007c5883871cfd5d0a93d61bb0e2b16e.zip cpython-236156f5007c5883871cfd5d0a93d61bb0e2b16e.tar.gz cpython-236156f5007c5883871cfd5d0a93d61bb0e2b16e.tar.bz2 |
Use True/False for ints instead of 1/0. That's so Python 2.0.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/client.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 99d560e..34bf6a9 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -359,8 +359,8 @@ class HTTPResponse: if self.version == 9: self.length = None - self.chunked = 0 - self.will_close = 1 + self.chunked = False + self.will_close = True self.msg = email.message_from_string('') return @@ -373,10 +373,10 @@ class HTTPResponse: # are we using the chunked-style of transfer encoding? tr_enc = self.msg.get("transfer-encoding") if tr_enc and tr_enc.lower() == "chunked": - self.chunked = 1 + self.chunked = True self.chunk_left = None else: - self.chunked = 0 + self.chunked = False # will the connection close at the end of the response? self.will_close = self._check_close() @@ -411,7 +411,7 @@ class HTTPResponse: if (not self.will_close and not self.chunked and self.length is None): - self.will_close = 1 + self.will_close = True def _check_close(self): conn = self.msg.get("connection") |