Skip to content

Commit

Permalink
protect against sys.modules contents change
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jun 17, 2022
1 parent 408b8de commit 13e3f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dill/__diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ def _imp(*args, **kwds):

# memorise all already imported modules. This implies that this must be
# imported first for any changes to be recorded
for mod in sys.modules.values():
for mod in list(sys.modules.values()):
memorise(mod)
release_gone()

0 comments on commit 13e3f80

Please sign in to comment.