Skip to content

Commit

Permalink
#4270 no need for readonly memoryview here
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jun 30, 2024
1 parent 19d7532 commit a95bd98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/net/mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def mmap_read(mmap_area, *descr_data) -> bytes | memoryview:
# construct an array directly from the mmap zone:
offset, length = descr_data[0]
data_start.value = offset + length
return (mv[offset:offset + length]).toreadonly()
return mv[offset:offset + length]
# re-construct the buffer from discontiguous chunks:
data = []
for offset, length in descr_data:
Expand Down

0 comments on commit a95bd98

Please sign in to comment.