diff 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
line wrap: on
line diff
--- a/hgext/inotify/linuxserver.py	Wed Jul 14 22:59:57 2010 -0300
+++ b/hgext/inotify/linuxserver.py	Wed Jul 14 23:03:21 2010 -0300
@@ -117,7 +117,7 @@
             try:
                 events = cls.poll.poll(timeout)
             except select.error, err:
-                if err[0] == errno.EINTR:
+                if err.args[0] == errno.EINTR:
                     continue
                 raise
             if events: