summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-15 03:10:36 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-15 03:10:36 +0000
commit0283b6f480b7239dc1390dadf29fcb5e1f2516e3 (patch)
tree6d75e6fb25fb7ff9e5668df1dfad9c7edba7a00e /numpy/core/arrayprint.py
parentd04bb02f393f0122e52b804bf548e0e18a0a2ecc (diff)
downloadnumpy-0283b6f480b7239dc1390dadf29fcb5e1f2516e3.tar.gz
Moved .dtypedescr to .dtype; .dtype->.dtype.type; .dtypestr ->.dtype.str; .dtypechar -> .dtype.char
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 284b4b04e..c22580cf9 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -145,7 +145,7 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ',
try:
format_function = a._format
except AttributeError:
- dtype = a.dtype
+ dtype = a.dtype.type
if issubclass(dtype, _nt.bool):
format = "%s"
format_function = lambda x, f = format: format % x