Skip to content

Commit

Permalink
- Fixed documentation.
Browse files Browse the repository at this point in the history
- Fixed select error handling (reported by Michal [email protected]).
  • Loading branch information
seb-m committed Feb 23, 2010
1 parent d334049 commit e9dfb24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions python2/pyinotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,10 +1446,9 @@ def __init__(self, arg_lst):
^/etc/rc.*
^/etc/hostname
@param arg_lst: is either a list or dict of patterns:
[pattern1, ..., patternn] or a filename from which
@param arg_lst: is either a list of patterns or a filename from which
patterns will be loaded.
@type arg_lst: list(str) or str
@type arg_lst: list of str or str
"""
if isinstance(arg_lst, str):
lst = self._load_patterns_from_file(arg_lst)
Expand Down
7 changes: 3 additions & 4 deletions python3/pyinotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ def check_events(self, timeout=None):
timeout = self._timeout
ret = self._pollobj.poll(timeout)
except select.error as err:
if err[0] == errno.EINTR:
if err.errno == errno.EINTR:
continue # interrupted, retry
else:
raise
Expand Down Expand Up @@ -1403,10 +1403,9 @@ def __init__(self, arg_lst):
^/etc/rc.*
^/etc/hostname
@param arg_lst: is either a list or dict of patterns:
[pattern1, ..., patternn] or a filename from which
@param arg_lst: is either a list of patterns or a filename from which
patterns will be loaded.
@type arg_lst: list(str) or str
@type arg_lst: list of str or str
"""
if isinstance(arg_lst, str):
lst = self._load_patterns_from_file(arg_lst)
Expand Down

0 comments on commit e9dfb24

Please sign in to comment.