Skip to content

Commit

Permalink
Use True/False for ints instead of 1/0. That's so Python 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyhylton committed Dec 15, 2008
1 parent 84f71d0 commit 236156f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ def begin(self):

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

Expand All @@ -373,10 +373,10 @@ def begin(self):
# 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()
Expand Down Expand Up @@ -411,7 +411,7 @@ def begin(self):
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")
Expand Down

0 comments on commit 236156f

Please sign in to comment.