Skip to content

Commit

Permalink
do not trigger deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Nov 15, 2022
1 parent 7da693b commit 0fa0233
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exports.jl
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 0fa0233

Please sign in to comment.