Kaydet (Commit) 42f740d8 authored tarafından Zachary Ware's avatar Zachary Ware

Issue #26875: Fix mmap example

Patch by Xiang Zhang.
üst 7f227d90
......@@ -127,7 +127,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
import mmap
with mmap.mmap(-1, 13) as mm:
mm.write("Hello world!")
mm.write(b"Hello world!")
.. versionadded:: 3.2
Context manager support.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment