Mercurial > public > mercurial-scm > hg
comparison tests/tinyproxy.py @ 14494:1ffeeb91c55d
check-code: flag 0/1 used as constant Boolean expression
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 01 Jun 2011 12:38:46 +0200 |
parents | ce99d887585f |
children | 0b21ae0a2366 |
comparison
equal
deleted
inserted
replaced
14493:5cc7905bccc9 | 14494:1ffeeb91c55d |
---|---|
93 | 93 |
94 def _read_write(self, soc, max_idling=20): | 94 def _read_write(self, soc, max_idling=20): |
95 iw = [self.connection, soc] | 95 iw = [self.connection, soc] |
96 ow = [] | 96 ow = [] |
97 count = 0 | 97 count = 0 |
98 while 1: | 98 while True: |
99 count += 1 | 99 count += 1 |
100 (ins, _, exs) = select.select(iw, ow, iw, 3) | 100 (ins, _, exs) = select.select(iw, ow, iw, 3) |
101 if exs: | 101 if exs: |
102 break | 102 break |
103 if ins: | 103 if ins: |