diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-04-28 19:47:12 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-04-28 19:47:12 (GMT) |
commit | 42f740d85418a5b11795a87f8c86d182b021a461 (patch) | |
tree | f721cdd56eed680543bfaae7498bf58362baf9a5 | |
parent | 7f227d90874e2f59027cebefc3085a9021939480 (diff) | |
download | cpython-42f740d85418a5b11795a87f8c86d182b021a461.zip cpython-42f740d85418a5b11795a87f8c86d182b021a461.tar.gz cpython-42f740d85418a5b11795a87f8c86d182b021a461.tar.bz2 |
Issue #26875: Fix mmap example
Patch by Xiang Zhang.
-rw-r--r-- | Doc/library/mmap.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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. |