summaryrefslogtreecommitdiff
path: root/numpy/core/records.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-05 11:37:56 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-05 11:37:56 +0000
commit99fab64c94c45f326cc34e9cc4f02b5bfb46d706 (patch)
treebcb5f403523a73ce298ee58751c544ae4cb600c9 /numpy/core/records.py
parentc6aa52df0532547ba1e046fbd65b8d0524e89c16 (diff)
downloadnumpy-99fab64c94c45f326cc34e9cc4f02b5bfb46d706.tar.gz
Fix #317 typo.
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r--numpy/core/records.py2
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: