summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-11-18 18:07:34 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-11-18 18:07:34 -0700
commit239783ffb705cdb8e0ed283f69fc05752e93e19b (patch)
tree4a406e60cbce2d6cd21ef6af25682c8cf44013fe /numpy/core/arrayprint.py
parent365fc9d19b52325bd5618aac1a3fa7b8a6be3b3c (diff)
downloadnumpy-239783ffb705cdb8e0ed283f69fc05752e93e19b.tar.gz
BUG: Fix legacy printing mode check.
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 9f5039c57..f4d6eba89 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -1170,7 +1170,7 @@ def dtype_is_implied(dtype):
array([1, 2, 3], dtype=np.int8)
"""
dtype = np.dtype(dtype)
- if _format_options['legacy'] and dtype.type == bool_:
+ if _format_options['legacy'] == '1.13' and dtype.type == bool_:
return False
return dtype.type in _typelessdata