From da3677060f54b6ac39db93728b4e9948adeeae6c Mon Sep 17 00:00:00 2001 From: Robert Kern Date: Sun, 20 Jul 2008 07:27:21 +0000 Subject: BUG: Allow longs as well as ints to satisfy Win64. --- numpy/lib/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib') 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): -- cgit v1.2.1