From 3b5a0eb315399aee6c4b4e0d93835378ea20933f Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Fri, 10 Mar 2017 00:19:38 -0600 Subject: [PATCH] Fix printing of indices in the depwarn for to_indexes (#20960) --- base/deprecated.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/deprecated.jl b/base/deprecated.jl index 36fc639baa403..05f2c7f66e166 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -478,7 +478,8 @@ function getindex(A::LogicalIndex, i::Int) first(Iterators.drop(A, i-1)) end function to_indexes(I...) - depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $(I...))` instead.", :to_indexes) + Istr = join(I, ", ") + depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $Istr)` instead.", :to_indexes) map(_to_index, I) end _to_index(i) = to_index(I)