diff options
Diffstat (limited to 'numpy/lib/io.py')
-rw-r--r-- | numpy/lib/io.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/io.py b/numpy/lib/io.py index 7be3c9804..7ef7df933 100644 --- a/numpy/lib/io.py +++ b/numpy/lib/io.py @@ -353,7 +353,7 @@ def savetxt(fname, X, fmt='%.18e',delimiter=' '): X = np.asarray(X) origShape = None - if len(X.shape)==1 and not hasattr(X.dtype, 'names'): + if len(X.shape)==1 and X.dtype.names is None: origShape = X.shape X.shape = len(X), 1 for row in X: |