Commit 4a0b936f authored by Julien Muchembled's avatar Julien Muchembled

Indent many lines before any real change

This is a preliminary commit, without any functional change,
just to make the next one easier to review.
parent 9f4dd15e
...@@ -135,6 +135,7 @@ class EpollEventManager(object): ...@@ -135,6 +135,7 @@ class EpollEventManager(object):
def _poll(self, blocking): def _poll(self, blocking):
if blocking: if blocking:
if 1:
timeout = self._timeout timeout = self._timeout
timeout_object = self timeout_object = self
for conn in self.connection_dict.itervalues(): for conn in self.connection_dict.itervalues():
...@@ -155,6 +156,7 @@ class EpollEventManager(object): ...@@ -155,6 +156,7 @@ class EpollEventManager(object):
elif exc.errno != EINTR: elif exc.errno != EINTR:
raise raise
return return
else:
if event_list: if event_list:
self.unregistered = unregistered = [] self.unregistered = unregistered = []
wlist = [] wlist = []
...@@ -186,7 +188,8 @@ class EpollEventManager(object): ...@@ -186,7 +188,8 @@ class EpollEventManager(object):
continue continue
if conn.readable(): if conn.readable():
self._addPendingConnection(conn) self._addPendingConnection(conn)
elif blocking > 0: return
if blocking > 0:
logging.debug('timeout triggered for %r', timeout_object) logging.debug('timeout triggered for %r', timeout_object)
timeout_object.onTimeout() timeout_object.onTimeout()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment