Skip to content

Commit

Permalink
Fix deprecations from JuliaLang/julia#8578
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Oct 15, 2014
1 parent ffb45e2 commit befb707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Reexport.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ macro reexport(ex)
error("@reexport: syntax error")

if ex.head == :module
modules = {ex.args[2]}
modules = Any[ex.args[2]]
ex = Expr(:toplevel, ex, Expr(:using, :., ex.args[2]))
elseif ex.head == :using
modules = {ex.args[end]}
modules = Any[ex.args[end]]
else
modules = {e.args[end] for e in ex.args}
modules = Any[e.args[end] for e in ex.args]
end

esc(Expr(:toplevel, ex,
Expand Down

0 comments on commit befb707

Please sign in to comment.