diff options
author | Brigitta Sipocz <bsipocz@gmail.com> | 2020-07-12 13:50:02 -0700 |
---|---|---|
committer | Brigitta Sipőcz <bsipocz@gmail.com> | 2022-05-17 20:11:34 -0700 |
commit | 497dc9402d04754b512e344c8039caafd55351da (patch) | |
tree | 67d6b59afac53f31dda3f7dfe937a197a220ed00 /numpy/lib/format.py | |
parent | 59aad3cf436691d447e43038e3402500f13cd817 (diff) | |
download | numpy-497dc9402d04754b512e344c8039caafd55351da.tar.gz |
Remove python <3.6 related things
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r-- | numpy/lib/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index 264fff8d6..dfd50b393 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -370,7 +370,7 @@ def _wrap_header(header, version): import struct assert version is not None fmt, encoding = _header_size_info[version] - if not isinstance(header, bytes): # always true on python 3 + if not isinstance(header, bytes): header = header.encode(encoding) hlen = len(header) + 1 padlen = ARRAY_ALIGN - ((MAGIC_LEN + struct.calcsize(fmt) + hlen) % ARRAY_ALIGN) |