From: Zachary Ware Date: Thu, 28 Apr 2016 19:47:12 +0000 (-0500) Subject: Issue #26875: Fix mmap example X-Git-Tag: v3.6.0a1~102^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42f740d85418a5b11795a87f8c86d182b021a461;p=thirdparty%2FPython%2Fcpython.git Issue #26875: Fix mmap example Patch by Xiang Zhang. --- diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index 33baf2bfae23..9652894c0282 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.