gorakhargosh/watchdog — pull request #79 by toddw-as (2011-10-18 17:19:05+00:00)
Title: My fix for: https://github.com/gorakhargosh/watchdog/issues/77

Handle the case where a watch could be deleted before the events were emitted.

I'm not sure what the implications of this are (i.e. if there is other cleanup that needs to occur in such a case), but this seems to work quite well for me.