diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-07-20 07:27:21 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-07-20 07:27:21 +0000 |
commit | da3677060f54b6ac39db93728b4e9948adeeae6c (patch) | |
tree | 54ef96a56bbf417b86f3fead167824c1617438f7 /numpy/lib/format.py | |
parent | ecf30dc2d1e500c5654ca8624aad15de84c01b6c (diff) | |
download | numpy-da3677060f54b6ac39db93728b4e9948adeeae6c.tar.gz |
BUG: Allow longs as well as ints to satisfy Win64.
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 c1c7740bb..00281bf9b 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -244,7 +244,7 @@ def read_array_header_1_0(fp): # Sanity-check the values. if (not isinstance(d['shape'], tuple) or - not numpy.all([isinstance(x, int) for x in d['shape']])): + not numpy.all([isinstance(x, (int,long)) for x in d['shape']])): msg = "shape is not valid: %r" raise ValueError(msg % (d['shape'],)) if not isinstance(d['fortran_order'], bool): |