Skip to content

Commit

Permalink
Import warnings (duh)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Oct 12, 2023
1 parent 614d527 commit 04f687c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/watchdog/observers/fsevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,6 @@ def schedule(self, event_handler, path, recursive=True):
if isinstance(path, str):
path = unicodedata.normalize("NFC", path)
if not recursive:
import warnings
warnings.warn("FSEvents requires and assumes recursive=True")
return BaseObserver.schedule(self, event_handler, path, recursive=True)

0 comments on commit 04f687c

Please sign in to comment.