summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2010-02-23 15:05:50 +0100
committerSebastien Martini <seb@dbzteam.org>2010-02-23 15:05:50 +0100
commite9dfb246c72eb373130640ccf3d996af031339dd (patch)
treedc25ce4a4588c6d9fc30ae7ed663bbe92ab16caa
parentd334049eed6b1136a9d224a3ca17aa66fea5215a (diff)
downloadpyinotify-e9dfb246c72eb373130640ccf3d996af031339dd.tar.gz
- Fixed documentation.
- Fixed select error handling (reported by Michal gentoo@mgorny.alt.pl).
-rwxr-xr-xpython2/pyinotify.py5
-rwxr-xr-xpython3/pyinotify.py7
2 files changed, 5 insertions, 7 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 7fd9015..b81f8a6 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1446,10 +1446,9 @@ class ExcludeFilter:
^/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)
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 6f836f5..d48a724 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1028,7 +1028,7 @@ class Notifier:
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
@@ -1403,10 +1403,9 @@ class ExcludeFilter:
^/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)