Mercurial > hg
comparison hgext/inotify/linuxserver.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | 5ddde896a19d |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
110 def run(cls): | 110 def run(cls): |
111 while True: | 111 while True: |
112 timeout = None | 112 timeout = None |
113 timeobj = None | 113 timeobj = None |
114 for obj in cls.instances.itervalues(): | 114 for obj in cls.instances.itervalues(): |
115 if obj.timeout is not None and (timeout is None or obj.timeout < timeout): | 115 if obj.timeout is not None and (timeout is None |
116 or obj.timeout < timeout): | |
116 timeout, timeobj = obj.timeout, obj | 117 timeout, timeobj = obj.timeout, obj |
117 try: | 118 try: |
118 events = cls.poll.poll(timeout) | 119 events = cls.poll.poll(timeout) |
119 except select.error, err: | 120 except select.error, err: |
120 if err[0] == errno.EINTR: | 121 if err[0] == errno.EINTR: |