Skip to content

Commit be0c1c2

Browse files
authored
Merge pull request #133 from jakirkham/link_gzip_py2_workaround
Add link about Python 2 GZip workaround
2 parents df60e2f + 79ad8e2 commit be0c1c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numcodecs/gzip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def encode(self, buf):
2929
buf = ensure_contiguous_ndarray(buf)
3030
if PY2: # pragma: py3 no cover
3131
# view as u1 needed on PY2
32+
# ref: https://github.com/zarr-developers/numcodecs/pull/128#discussion_r236786466
3233
buf = buf.view('u1')
3334

3435
# do compression

0 commit comments

Comments
 (0)