From 72be3e43fdd6f8057a3a6f97d9fa1b00167eac6b Mon Sep 17 00:00:00 2001 From: apoirier Date: Mon, 2 Sep 2024 19:35:42 +0200 Subject: [PATCH] [kqueue] fix `TypeError: kqueue.control() only accepts positional parameters` (#1062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * `kqueue.control()` only accepts positional parameters * docs: changelog [skip ci] --------- Co-authored-by: Mickaël Schoentgen --- changelog.rst | 4 ++-- src/watchdog/observers/kqueue.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.rst b/changelog.rst index e081575e..867ab2f0 100644 --- a/changelog.rst +++ b/changelog.rst @@ -8,8 +8,8 @@ Changelog 2024-xx-xx • `full history `__ -- -- Thanks to our beloved contributors: @ +- [kqueue] Fix ``TypeError: kqueue.control() only accepts positional parameters`` (`#1062 `__) +- Thanks to our beloved contributors: @apoirier 5.0.0 ~~~~~ diff --git a/src/watchdog/observers/kqueue.py b/src/watchdog/observers/kqueue.py index 1648fca5..9f049ae6 100644 --- a/src/watchdog/observers/kqueue.py +++ b/src/watchdog/observers/kqueue.py @@ -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