From 497dc9402d04754b512e344c8039caafd55351da Mon Sep 17 00:00:00 2001 From: Brigitta Sipocz Date: Sun, 12 Jul 2020 13:50:02 -0700 Subject: Remove python <3.6 related things --- numpy/lib/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/format.py') 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) -- cgit v1.2.1