diff options
author | Sebastien Martini <seb@dbzteam.org> | 2011-01-06 16:15:37 +0100 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2011-01-06 16:15:37 +0100 |
commit | 615e3de57370a6c61da28773d27457421ae528c7 (patch) | |
tree | 56a6578f6780f2dbf602321ca89952e37e6a79c6 /python3/pyinotify.py | |
parent | df4b84ec315b1f4063f86d21b67628a2c1ea7285 (diff) | |
download | pyinotify-615e3de57370a6c61da28773d27457421ae528c7.tar.gz |
Fixed select's error handling (contributed by zjes).
Diffstat (limited to 'python3/pyinotify.py')
-rwxr-xr-x | python3/pyinotify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py index 10126d2..70e3442 100755 --- a/python3/pyinotify.py +++ b/python3/pyinotify.py @@ -1080,7 +1080,7 @@ class Notifier: timeout = self._timeout ret = self._pollobj.poll(timeout) except select.error as err: - if err.errno == errno.EINTR: + if err.args[0] == errno.EINTR: continue # interrupted, retry else: raise |