diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-02-24 16:46:58 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-02-24 16:46:58 +0000 |
commit | 48783e5ceb7f60c33db81ab72e5024f42b220990 (patch) | |
tree | 2284b780e521418b0e73fd7283403d3e7e28da50 /numpy/core/arrayprint.py | |
parent | 5f5ccecbfc116284ed8c8d53cd8b203ceef5f7c7 (diff) | |
download | numpy-48783e5ceb7f60c33db81ab72e5024f42b220990.tar.gz |
MAINT: replace len(x.shape) with x.ndim
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 349f8ea39..318ad5495 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -331,7 +331,7 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ', # skip over array( next_line_prefix += " "*len(prefix) - lst = _formatArray(a, format_function, len(a.shape), max_line_width, + lst = _formatArray(a, format_function, a.ndim, max_line_width, next_line_prefix, separator, _summaryEdgeItems, summary_insert)[:-1] return lst |