Skip to content

Commit 72be3e4

Browse files
apoirierBoboTiG
andauthored
[kqueue] fix TypeError: kqueue.control() only accepts positional parameters (#1062)
* `kqueue.control()` only accepts positional parameters * docs: changelog [skip ci] --------- Co-authored-by: Mickaël Schoentgen <[email protected]>
1 parent 5daadf5 commit 72be3e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

changelog.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Changelog
88

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

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

1414
5.0.0
1515
~~~~~

src/watchdog/observers/kqueue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def _read_events(self, timeout: float) -> list[select.kevent]:
599599
:type timeout:
600600
``float`` (seconds)
601601
"""
602-
return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout=timeout)
602+
return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout)
603603

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

0 commit comments

Comments
 (0)