fix indent

This commit is contained in:
Benoit Chesneau 2010-02-03 17:09:35 +01:00
parent fba0342536
commit 9928aca73f

View File

@ -151,7 +151,8 @@ class Arbiter(object):
self.log.error("Connection in use: %s" % str(addr)) self.log.error("Connection in use: %s" % str(addr))
if i < 5: if i < 5:
self.log.error("Retrying in 1 second.") self.log.error("Retrying in 1 second.")
time.sleep(1) time.sleep(1)
if self.LISTENER: if self.LISTENER:
try: try:
self.log.info("Listen on %s:%s" % self.LISTENER.getsockname()) self.log.info("Listen on %s:%s" % self.LISTENER.getsockname())
@ -159,7 +160,7 @@ class Arbiter(object):
self.log.info("Listen on %s" % self.LISTENER.getsockname()) self.log.info("Listen on %s" % self.LISTENER.getsockname())
else: else:
self.log.error("Can't connect to %s" % str(addr)) self.log.error("Can't connect to %s" % str(addr))
sys.exit(-1) sys.exit(1)
def init_socket_fromfd(self, fd, address): def init_socket_fromfd(self, fd, address):
if isinstance(address, basestring): if isinstance(address, basestring):