Skip to content

Commit e959ea0

Browse files
authored
fix: avoid Python 3.15 segfault from bytearray.__new__ (#633)
1 parent 265be56 commit e959ea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dbus_fast/_private/unmarshaller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def __init__(
301301
negotiate_unix_fd: bool = True,
302302
) -> None:
303303
self._unix_fds: list[int] = []
304-
self._buf: bytearray = bytearray.__new__(bytearray) # Actual buffer
304+
self._buf: bytearray = bytearray() # Actual buffer
305305
self._buf_ustr = self._buf # Used to avoid type checks
306306
self._buf_len = 0
307307
self._stream = stream

0 commit comments

Comments
 (0)