diff options
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r-- | numpy/core/memmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py index f07cf78ee..4604cc734 100644 --- a/numpy/core/memmap.py +++ b/numpy/core/memmap.py @@ -248,7 +248,7 @@ class memmap(ndarray): if mode == 'w+' or (mode == 'r+' and flen < bytes): fid.seek(bytes - 1, 0) - fid.write(np.compat.asbytes('\0')) + fid.write(b'\0') fid.flush() if mode == 'c': |