From 8e5c7f9fe4ad334f33a4c681d782319598f3b9aa Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 29 Sep 2017 09:22:08 +0200 Subject: [PATCH] Fix deprecations of #23812 for sparse find methods --- base/sparse/sparsematrix.jl | 2 +- base/sparse/sparsevector.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/sparse/sparsematrix.jl b/base/sparse/sparsematrix.jl index d69721a9c3479..09255dacdaefa 100644 --- a/base/sparse/sparsematrix.jl +++ b/base/sparse/sparsematrix.jl @@ -1284,7 +1284,7 @@ dropzeros(A::SparseMatrixCSC, trim::Bool = true) = dropzeros!(copy(A), trim) function find(S::SparseMatrixCSC) if !(eltype(S) <: Bool) - depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) + Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) end return find(x->x!=0, S) end diff --git a/base/sparse/sparsevector.jl b/base/sparse/sparsevector.jl index 8c5d5ab18115d..ddaf2ef9ebf54 100644 --- a/base/sparse/sparsevector.jl +++ b/base/sparse/sparsevector.jl @@ -651,7 +651,7 @@ end function find(x::SparseVector) if !(eltype(x) <: Bool) - depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) + Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) end return find(x->x!=0, x) end