Skip to content

Commit

Permalink
Propagate superficial parameter to remove_watch_with_id
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
xaf authored and dsoprea committed Aug 25, 2020
1 parent 288a2b0 commit 7202fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inotify/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7202fc4

Please sign in to comment.