Skip to content

Commit

Permalink
fix deprecation from JuliaLang/julia#25647
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jun 16, 2018
1 parent 7164f25 commit ba2cc1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ end

# call doevent(status) every sec seconds
function install_doevent(doevent, sec::Real)
return Base.Timer(doevent, sec, sec)
@static if VERSION < v"0.7.0-DEV.3526" # julia#25647
return Base.Timer(doevent, sec, sec)
else
return Base.Timer(doevent, sec, interval=sec)
end
end

# For PyPlot issue #181: recent pygobject releases emit a warning
Expand Down

0 comments on commit ba2cc1b

Please sign in to comment.