Skip to content

Commit

Permalink
Deprecate the fsevents2 module (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Jul 26, 2022
1 parent 0800dba commit e8c20a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.rst
Expand Up @@ -9,6 +9,7 @@ Changelog
2022-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v2.1.9...HEAD>`__

- [documentation] HTML documentation builds are now tested for errors.
- [fsevents2] The fsevents2 observer is now deprecated.
- Thanks to our beloved contributors: @kurtmckee

2.1.9
Expand Down
5 changes: 5 additions & 0 deletions src/watchdog/observers/fsevents2.py
Expand Up @@ -24,6 +24,7 @@
import logging
import queue
import unicodedata
import warnings
from threading import Thread

from watchdog.events import (
Expand Down Expand Up @@ -77,6 +78,10 @@

logger = logging.getLogger(__name__)

message = "watchdog.observers.fsevents2 is deprecated and will be removed in a future release."
warnings.warn(message, DeprecationWarning)
logger.warning(message)


class FSEventsQueue(Thread):
""" Low level FSEvents client. """
Expand Down

0 comments on commit e8c20a4

Please sign in to comment.