Skip to content

Commit

Permalink
[kqueue] fix `TypeError: kqueue.control() only accepts positional par…
Browse files Browse the repository at this point in the history
…ameters` (#1062)

* `kqueue.control()` only accepts positional parameters

* docs: changelog

[skip ci]

---------

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
  • Loading branch information
apoirier and BoboTiG authored Sep 2, 2024
1 parent 5daadf5 commit 72be3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Changelog

2024-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.0...HEAD>`__

-
- Thanks to our beloved contributors: @
- [kqueue] Fix ``TypeError: kqueue.control() only accepts positional parameters`` (`#1062 <https://github.com/gorakhargosh/watchdog/pull/1062>`__)
- Thanks to our beloved contributors: @apoirier

5.0.0
~~~~~
Expand Down
2 changes: 1 addition & 1 deletion src/watchdog/observers/kqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def _read_events(self, timeout: float) -> list[select.kevent]:
:type timeout:
``float`` (seconds)
"""
return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout=timeout)
return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout)

def queue_events(self, timeout: float) -> None:
"""Queues events by reading them from a call to the blocking
Expand Down

0 comments on commit 72be3e4

Please sign in to comment.