Skip to content

Commit

Permalink
Fix Dates.recur deprecation (#19375)
Browse files Browse the repository at this point in the history
Deprecation introduced in #19288
  • Loading branch information
omus authored and simonbyrne committed Nov 21, 2016
1 parent 7232a9a commit 68af05e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1119,11 +1119,11 @@ Filesystem.stop_watching(stream::Filesystem._FDWatcher) = depwarn("stop_watching
# #19288
eval(Base.Dates, quote
function recur{T<:TimeType}(fun::Function, dr::StepRange{T}; negate::Bool=false, limit::Int=10000)
depwarn("Dates.recur is deprecated, use filter instead.",:recur)
Base.depwarn("Dates.recur is deprecated, use filter instead.",:recur)
if negate
filter(x -> !f(x), dr)
filter(x -> !fun(x), dr)
else
filter(f, dr)
filter(fun, dr)
end
end
recur{T<:TimeType}(fun::Function, start::T, stop::T; step::Period=Day(1), negate::Bool=false, limit::Int=10000) = recur(fun, start:step:stop; negate=negate)
Expand Down

2 comments on commit 68af05e

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

Please sign in to comment.