Issue #26875: Fix mmap example

Patch by Xiang Zhang.
This commit is contained in:
Zachary Ware 2016-04-28 14:47:12 -05:00
parent 7f227d9087
commit 42f740d854
1 changed files with 1 additions and 1 deletions

View File

@ -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.