Skip to content

Commit

Permalink
Merge pull request #89 from MikeInnes/fbot/deps
Browse files Browse the repository at this point in the history
Fix deprecations
  • Loading branch information
pfitzseb authored Aug 9, 2018
2 parents ce87b01 + 4fc4af0 commit 4324734
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ end
macro errs(ex)
:(try $(esc(ex))
catch e
showerror(STDERR, e, catch_backtrace())
println(STDERR)
showerror(stderr, e, catch_backtrace())
println(stderr)
end)
end

Expand Down Expand Up @@ -303,10 +303,10 @@ export @init
function initm(ex)
quote

if !isdefined(@compat(@__MODULE__), :__inits__)
if !isdefined(@__MODULE__, :__inits__)
const $(esc(:__inits__)) = Function[]
end
if !isdefined(@compat(@__MODULE__), :__init__)
if !isdefined(@__MODULE__, :__init__)
function $(esc(:__init__))()
for f in $(esc(:__inits__))
f()
Expand Down

0 comments on commit 4324734

Please sign in to comment.