Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uqfoundation/dill
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jun 25, 2023
2 parents 83ab36c + 4f3fe3d commit c172f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dill/_dill.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,7 @@ def save_weakproxy(pickler, obj):

def _is_builtin_module(module):
if not hasattr(module, "__file__"): return True
if module.__file__ is None: return False
# If a module file name starts with prefix, it should be a builtin
# module, so should always be pickled as a reference.
names = ["base_prefix", "base_exec_prefix", "exec_prefix", "prefix", "real_prefix"]
Expand Down

0 comments on commit c172f59

Please sign in to comment.