summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-07-26 17:50:26 -0500
committerCharles Harris <charlesr.harris@gmail.com>2011-08-27 07:26:47 -0600
commitc788fe30c164bdd511941f2c7e0101317079b8f1 (patch)
tree90c0044f13205d98717b334cc82e000c1f319ee4 /numpy/core/numeric.py
parent91861a9638391361234a442497536204f6fe59e4 (diff)
downloadnumpy-c788fe30c164bdd511941f2c7e0101317079b8f1.tar.gz
ENH: missingdata: More progress towards NPY_ITER_USE_MASKNA flag support
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index a28ecdd19..3dd32cf01 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -1330,15 +1330,15 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None):
else:
cName = "array"
- skiptype = (arr.dtype.type in _typelessdata) and arr.size > 0
+ skipdtype = (arr.dtype.type in _typelessdata) and arr.size > 0
if arr.flags.maskna:
lst += ", maskna=True"
# If everything is NA, can't skip the type
- if skiptype and np.all(np.isna(arr)):
- skiptype = False
+ if skipdtype and all(isna(arr)):
+ skipdtype = False
- if skiptype:
+ if skipdtype:
return "%s(%s)" % (cName, lst)
else:
typename = arr.dtype.name