summaryrefslogtreecommitdiff
path: root/Doc/library/mmap.rst
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-04-28 14:47:12 -0500
committerZachary Ware <zachary.ware@gmail.com>2016-04-28 14:47:12 -0500
commit42f740d85418a5b11795a87f8c86d182b021a461 (patch)
treef721cdd56eed680543bfaae7498bf58362baf9a5 /Doc/library/mmap.rst
parent7f227d90874e2f59027cebefc3085a9021939480 (diff)
downloadcpython-git-42f740d85418a5b11795a87f8c86d182b021a461.tar.gz
Issue #26875: Fix mmap example
Patch by Xiang Zhang.
Diffstat (limited to 'Doc/library/mmap.rst')
-rw-r--r--Doc/library/mmap.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index 33baf2bfae..9652894c02 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.