From 6aacc2d373c961865c43f139acbf15d9cb823c04 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 2 Dec 2010 15:26:22 -0700 Subject: BUG: Try fix for python 2.4, use list instead of tuple. --- numpy/lib/npyio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index aeccc2a24..34bbd1469 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1269,7 +1269,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, elif (names is not None) and (len(names) > nbcols): names = [names[_] for _ in usecols] elif (names is not None) and (dtype is not None): - names = dtype.names + names = list(dtype.names) # Process the missing values ............................... -- cgit v1.2.1