Mercurial > hg
comparison hgext/inotify/linuxserver.py @ 11567:34cc8b84407f
removed exception args indexing (not supported by py3k)
Py3k removed __getitem__ for exception classes. The correct way of
getting the exception arguments is by using the args method.
author | Renato Cunha <renatoc@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 23:03:21 -0300 |
parents | 08064db9f005 |
children | 64481eee6215 |
comparison
equal
deleted
inserted
replaced
11566:4d11fde55cc5 | 11567:34cc8b84407f |
---|---|
115 or obj.timeout < timeout): | 115 or obj.timeout < timeout): |
116 timeout, timeobj = obj.timeout, obj | 116 timeout, timeobj = obj.timeout, obj |
117 try: | 117 try: |
118 events = cls.poll.poll(timeout) | 118 events = cls.poll.poll(timeout) |
119 except select.error, err: | 119 except select.error, err: |
120 if err[0] == errno.EINTR: | 120 if err.args[0] == errno.EINTR: |
121 continue | 121 continue |
122 raise | 122 raise |
123 if events: | 123 if events: |
124 by_fd = {} | 124 by_fd = {} |
125 for fd, event in events: | 125 for fd, event in events: |