diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-10-05 11:37:56 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-10-05 11:37:56 +0000 |
commit | 99fab64c94c45f326cc34e9cc4f02b5bfb46d706 (patch) | |
tree | bcb5f403523a73ce298ee58751c544ae4cb600c9 /numpy/core/records.py | |
parent | c6aa52df0532547ba1e046fbd65b8d0524e89c16 (diff) | |
download | numpy-99fab64c94c45f326cc34e9cc4f02b5bfb46d706.tar.gz |
Fix #317 typo.
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r-- | numpy/core/records.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py index 41c4d56a2..194f54e27 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -514,7 +514,7 @@ def array(obj, dtype=None, shape=None, offset=0, strides=None, formats=None, elif isinstance(obj, recarray): copied = 0 - if dtype is not None and (new.dtype != dtype): + if dtype is not None and (obj.dtype != dtype): new = obj.astype(dtype) copied = 1 else: |