From 42f740d85418a5b11795a87f8c86d182b021a461 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Thu, 28 Apr 2016 14:47:12 -0500 Subject: Issue #26875: Fix mmap example Patch by Xiang Zhang. --- Doc/library/mmap.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index 33baf2b..9652894 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -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. -- cgit v0.12