summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <ookoi@mars.(none)>2008-07-28 09:57:54 +0200
committerSebastien Martini <ookoi@mars.(none)>2008-07-28 09:57:54 +0200
commit9b325cf5ab4cee13e458d74a2b3766c7690a1d4f (patch)
treed13792b4b41da50905a9d72bc588a5febf028ac3
parent8e300b46ed892704a4484e4734c7d9e2c7100877 (diff)
downloadpyinotify-9b325cf5ab4cee13e458d74a2b3766c7690a1d4f.tar.gz
Revert "New attribute Notifier.event_queue_size"
This reverts commit 8e300b46ed892704a4484e4734c7d9e2c7100877.
-rwxr-xr-xpyinotify.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyinotify.py b/pyinotify.py
index 7939e83..b66a1a8 100755
--- a/pyinotify.py
+++ b/pyinotify.py
@@ -884,7 +884,6 @@ class Notifier:
self._pollobj.register(self._fd, select.POLLIN)
# event queue
self._eventq = deque()
- self.event_queue_size = 0
# system processing functor, common to all events
self._sys_proc_fun = _SysProcessEvent(self._watch_manager, self)
# default processing method
@@ -930,7 +929,7 @@ class Notifier:
# get event queue size
if fcntl.ioctl(self._fd, termios.FIONREAD, buf_, 1) == -1:
return
- self.event_queue_size = queue_size = buf_[0]
+ queue_size = buf_[0]
if queue_size < self._treshold:
log.debug('(fd: %d) %d bytes available to read but '
'treshold is fixed to %d bytes' % (self._fd,