Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42f740d

Browse files
committed
Issue #26875: Fix mmap example
Patch by Xiang Zhang.
1 parent 7f227d9 commit 42f740d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/mmap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
127127
import mmap
128128

129129
with mmap.mmap(-1, 13) as mm:
130-
mm.write("Hello world!")
130+
mm.write(b"Hello world!")
131131

132132
.. versionadded:: 3.2
133133
Context manager support.

0 commit comments

Comments
 (0)