Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remove_watch+ base tree.event gen #61

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Propagate superficial parameter to remove_watch_with_id
The remove_watch method takes a superficial parameter but never used
it, which made the remove_watch_with_id function set it as False by default.
This fixes that behavior by propagating the parameter.

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
xaf authored Jul 29, 2018
commit b3e43926bd26b6a20e69c9aa0673d077cda0e8bc
2 changes: 1 addition & 1 deletion inotify/adapters.py
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ def remove_watch(self, path, superficial=False):

del self.__watches[path]

self.remove_watch_with_id(wd)
self.remove_watch_with_id(wd, superficial)

def remove_watch_with_id(self, wd, superficial=False):
del self.__watches_r[wd]