Mercurial > public > mercurial-scm > hg
diff hgext/zeroconf/Zeroconf.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 | 87ebf72878ed |
children | 7de7630053cb |
line wrap: on
line diff
--- a/hgext/zeroconf/Zeroconf.py Tue May 31 20:39:04 2011 -0500 +++ b/hgext/zeroconf/Zeroconf.py Wed Jun 01 12:38:46 2011 +0200 @@ -591,7 +591,7 @@ next = -1 first = off - while 1: + while True: len = ord(self.data[off]) off += 1 if len == 0: @@ -939,7 +939,7 @@ self.start() def run(self): - while 1: + while True: self.zeroconf.wait(10 * 1000) if globals()['_GLOBAL_DONE']: return @@ -1003,7 +1003,7 @@ self.zeroconf.notifyAll() def run(self): - while 1: + while True: event = None now = currentTimeMillis() if len(self.list) == 0 and self.nextTime > now: