diff --git a/src/exports.jl b/src/exports.jl index 8095b6e2..584613c2 100644 --- a/src/exports.jl +++ b/src/exports.jl @@ -1,7 +1,8 @@ function walkmodules(f, x::Module) f(x) - for n in names(x; all=true) - if isdefined(x, n) + for n in names(x; all = true) + # `getproperty` triggers deprecation warnings + if isdefined(x, n) && !Base.isdeprecated(x, n) y = getproperty(x, n) if y isa Module && y !== x && parentmodule(y) === x walkmodules(f, y)