From 239783ffb705cdb8e0ed283f69fc05752e93e19b Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 18 Nov 2017 18:07:34 -0700 Subject: BUG: Fix legacy printing mode check. --- numpy/core/arrayprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/arrayprint.py') 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 -- cgit v1.2.1