Skip to content

Commit

Permalink
[watchmedo] Removed unexistant WindowsApiAsyncObserver references
Browse files Browse the repository at this point in the history
Same for --debug-force-winapi-async arguments.
  • Loading branch information
BoboTiG committed Oct 1, 2021
1 parent 0191c40 commit 2325b00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
3 changes: 2 additions & 1 deletion changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Changelog

- [bsd] Fixed returned paths in ``kqueue.py`` and restored the overall results of the test suite (`#842 <https://github.com/gorakhargosh/watchdog/pull/842>`_)
- [bsd] Updated FreeBSD CI support (`#841 <https://github.com/gorakhargosh/watchdog/pull/841>`_)
- Thanks to our beloved contributors: @knobix
- [watchmedo] Removed unexistant ``WindowsApiAsyncObserver`` references and ``--debug-force-winapi-async`` arguments
- Thanks to our beloved contributors: @knobix, @BoboTiG

2.1.5
~~~~~
Expand Down
1 change: 0 additions & 1 deletion src/watchdog/observers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
.. |FSEvents| replace:: :class:`.fsevents.FSEventsObserver`
.. |Kqueue| replace:: :class:`.kqueue.KqueueObserver`
.. |WinApi| replace:: :class:`.read_directory_changes.WindowsApiObserver`
.. |WinApiAsync| replace:: :class:`.read_directory_changes_async.WindowsApiAsyncObserver`
.. |Polling| replace:: :class:`.polling.PollingObserver`
"""
Expand Down
12 changes: 0 additions & 12 deletions src/watchdog/watchmedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ def schedule_tricks(observer, tricks, pathname, recursive):
argument('--debug-force-winapi',
default=False,
help='[debug] forces Windows API'),
argument('--debug-force-winapi-async',
default=False,
help='[debug] forces Windows API + I/O completion'),
argument('--debug-force-fsevents',
default=False,
help='[debug] forces Mac OS X FSEvents'),
Expand All @@ -216,9 +213,6 @@ def tricks_from(args):
from watchdog.observers.polling import PollingObserver as Observer
elif args.debug_force_kqueue:
from watchdog.observers.kqueue import KqueueObserver as Observer
elif args.debug_force_winapi_async:
from watchdog.observers.read_directory_changes_async import\
WindowsApiAsyncObserver as Observer
elif args.debug_force_winapi:
from watchdog.observers.read_directory_changes import\
WindowsApiObserver as Observer
Expand Down Expand Up @@ -363,9 +357,6 @@ def tricks_generate_yaml(args):
argument('--debug-force-winapi',
default=False,
help='[debug] forces Windows API'),
argument('--debug-force-winapi-async',
default=False,
help='[debug] forces Windows API + I/O completion'),
argument('--debug-force-fsevents',
default=False,
help='[debug] forces Mac OS X FSEvents'),
Expand Down Expand Up @@ -394,9 +385,6 @@ def log(args):
from watchdog.observers.polling import PollingObserver as Observer
elif args.debug_force_kqueue:
from watchdog.observers.kqueue import KqueueObserver as Observer
elif args.debug_force_winapi_async:
from watchdog.observers.read_directory_changes_async import\
WindowsApiAsyncObserver as Observer
elif args.debug_force_winapi:
from watchdog.observers.read_directory_changes import\
WindowsApiObserver as Observer
Expand Down

0 comments on commit 2325b00

Please sign in to comment.