diff options
author | Jarrod Millman <millman@berkeley.edu> | 2008-02-08 10:54:01 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2008-02-08 10:54:01 +0000 |
commit | c66da19ab8bd6ad7f035b77026bbd703eab199d4 (patch) | |
tree | 55136b4e38d5991dbd68d4e0984c645f11cefce7 /numpy/lib/format.py | |
parent | 0b7800b455b3aaf50cb83a224f283e72f1dea951 (diff) | |
download | numpy-c66da19ab8bd6ad7f035b77026bbd703eab199d4.tar.gz |
ran reindent
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r-- | numpy/lib/format.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index bb58c5c61..10d6d27b7 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -227,7 +227,7 @@ def read_array_header_1_0(fp): raise ValueError("Header does not contain the correct keys: %r" % (keys,)) # Sanity-check the values. - if (not isinstance(d['shape'], tuple) or + if (not isinstance(d['shape'], tuple) or not numpy.all([isinstance(x, int) for x in d['shape']])): raise ValueError("shape is not valid: %r" % (d['shape'],)) if not isinstance(d['fortran_order'], bool): @@ -407,6 +407,3 @@ def open_memmap(filename, mode='r+', dtype=None, shape=None, mode=mode, offset=offset) return marray - - - |