def unschedule(self, watch):
    """Unschedules a watch.

    :param watch:
        The watch to unschedule.
    :type watch:
        An instance of :class:`ObservedWatch` or a subclass of
        :class:`ObservedWatch`
    """
    with self._lock:
      try:
        emitter = self._get_emitter_for_watch(watch)
        self._remove_handlers_for_watch(watch)
        self._remove_emitter(emitter)
        self._watches.remove(watch)
      except __HOLE__:
        raise
dataset/ETHPy150Open austinwagner/sublime-sourcepawn/watchdog/observers/api.py/BaseObserver.unschedule