summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2010-05-13 19:49:33 +0200
committerSebastien Martini <seb@dbzteam.org>2010-05-13 19:49:33 +0200
commit4715f25f0019e97f77280a8cec3434400f094f47 (patch)
tree88bd8db06c21a129e54114567fa57e6b67b2ce23
parenta6f14ef16de967cb342057549467feb5a47252ab (diff)
downloadpyinotify-4715f25f0019e97f77280a8cec3434400f094f47.tar.gz
Fixed auto_add handling in method update_watch (contributed by
Matthew Webber Matthew.Webber@diamond.ac.uk).
-rwxr-xr-xpython2/pyinotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index ef2ee7e..e659746 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1790,7 +1790,7 @@ class WatchManager:
watch_.proc_fun = proc_fun
if auto_add:
- watch_.proc_fun = auto_add
+ watch_.auto_add = auto_add
ret_[awd] = True
log.debug('Updated watch - %s', self._wmd[awd])