Skip to content

Commit 810b0e6

Browse files
martinholtersJeffBezanson
authored andcommitted
Fix deprecations of #23812 for sparse find methods (#23924)
1 parent 49cbf5a commit 810b0e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/sparse/sparsematrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ dropzeros(A::SparseMatrixCSC, trim::Bool = true) = dropzeros!(copy(A), trim)
12841284

12851285
function find(S::SparseMatrixCSC)
12861286
if !(eltype(S) <: Bool)
1287-
depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find)
1287+
Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find)
12881288
end
12891289
return find(x->x!=0, S)
12901290
end

base/sparse/sparsevector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ end
651651

652652
function find(x::SparseVector)
653653
if !(eltype(x) <: Bool)
654-
depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find)
654+
Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find)
655655
end
656656
return find(x->x!=0, x)
657657
end

0 commit comments

Comments
 (0)