diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2012-07-05 10:18:09 -0400 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2012-07-05 10:18:09 -0400 |
commit | c35c83c2e7b9f0cd51606d5a63c36cc68cf4556a (patch) | |
tree | 576a60f328cb9209ccab80d6f28a66fe45dba611 /numpy/lib/npyio.py | |
parent | 81a03cff05e250fd9982042c332bd4e15e0b3962 (diff) | |
download | numpy-c35c83c2e7b9f0cd51606d5a63c36cc68cf4556a.tar.gz |
BF: removed too much -- own_fid should be False while working with .npz
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 695341da4..cb14e4963 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -369,6 +369,7 @@ def load(file, mmap_mode=None): magic = fid.read(N) fid.seek(-N, 1) # back-up if magic.startswith(_ZIP_PREFIX): # zip-file (assume .npz) + own_fid = False return NpzFile(fid, own_fid=own_fid) elif magic == format.MAGIC_PREFIX: # .npy file if mmap_mode: |