Skip to content

Commit

Permalink
Merge pull request #267 from david-pl/fix-depwarn
Browse files Browse the repository at this point in the history
Fix polynorm deprecation warning
  • Loading branch information
shashi authored Apr 6, 2021
2 parents 266d3e6 + e4b71cb commit 806fd57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function simplify(x;
thread_subtree_cutoff=100,
rewriter=nothing)
if polynorm !== nothing
Base.depwarn("simplify(..; polynorm=$polynorm) is deprecated, use simplify(..; expand=$polynorm) instead")
Base.depwarn("simplify(..; polynorm=$polynorm) is deprecated, use simplify(..; expand=$polynorm) instead",
:simplify)
end

f = if rewriter === nothing
Expand Down

0 comments on commit 806fd57

Please sign in to comment.