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

Deprecate the fsevents2 module #909

Merged
merged 1 commit into from Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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