From 0fa0233aac1f147fc192e172ad54f73df1062375 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 15 Nov 2022 10:53:40 +0100 Subject: [PATCH] do not trigger deprecation warnings --- src/exports.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)