summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-12-02 08:56:11 +0100
committerSebastien Martini <seb@dbzteam.org>2011-12-02 08:56:11 +0100
commita2ed5c67db7944ee20dbc5991f7ff779215e89ca (patch)
tree54954f9a966bc577e54c29e3abebf06d9b666dec
parent43f47fed3a28b7cd62cfcf1bcfa948d7499a0407 (diff)
downloadpyinotify-a2ed5c67db7944ee20dbc5991f7ff779215e89ca.tar.gz
Improve comment.
-rwxr-xr-xpython2/pyinotify.py6
-rwxr-xr-xpython3/pyinotify.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index ec99b71..a23f375 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1281,11 +1281,11 @@ class Notifier:
while self._eventq:
raw_event = self._eventq.popleft() # pop next event
watch_ = self._watch_manager.get_watch(raw_event.wd)
- # Not really sure how we ended up here, nor how we should
- # handle these types of events and if it is appropriate to
- # completly skip them (like we are doing here).
if (watch_ is None) and not (raw_event.mask & IN_Q_OVERFLOW):
if not (raw_event.mask & IN_IGNORED):
+ # Not really sure how we ended up here, nor how we should
+ # handle these types of events and if it is appropriate to
+ # completly skip them (like we are doing here).
log.warning("Unable to retrieve Watch object associated to %s",
repr(raw_event))
continue
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index a048493..fac8364 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1263,11 +1263,11 @@ class Notifier:
while self._eventq:
raw_event = self._eventq.popleft() # pop next event
watch_ = self._watch_manager.get_watch(raw_event.wd)
- # Not really sure how we ended up here, nor how we should
- # handle these types of events and if it is appropriate to
- # completly skip them (like we are doing here).
if (watch_ is None) and not (raw_event.mask & IN_Q_OVERFLOW):
if not (raw_event.mask & IN_IGNORED):
+ # Not really sure how we ended up here, nor how we should
+ # handle these types of events and if it is appropriate to
+ # completly skip them (like we are doing here).
log.warning("Unable to retrieve Watch object associated to %s",
repr(raw_event))
continue