hgext/zeroconf/Zeroconf.py
changeset 14494 1ffeeb91c55d
parent 14063 87ebf72878ed
child 15782 7de7630053cb
--- 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: