Skip to content

Commit

Permalink
return false for deprecated bindings in is_exported_from_stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Oct 12, 2016
1 parent ec80011 commit ca4394b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function is_exported_from_stdlib(name::Symbol, mod::Module)
end
mod = parent
end
return isexported(mod, name) && isdefined(mod, name) && getfield(mod, name) === orig
return isexported(mod, name) && isdefined(mod, name) && !isdeprecated(mod, name) && getfield(mod, name) === orig
end

function show(io::IO, f::Function)
Expand Down

0 comments on commit ca4394b

Please sign in to comment.