Skip to content

Commit

Permalink
pop don't del items in abc dict
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Mar 26, 2023
1 parent 3c8790b commit 580ccdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dill/_dill.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,12 +1714,12 @@ def _get_typedict_abc(obj, _dict, attrs, postproc_list):
raise PicklingError("Cannot find registry of ABC %s", obj)

if '_abc_registry' in _dict:
del _dict['_abc_registry']
del _dict['_abc_cache']
del _dict['_abc_negative_cache']
# del _dict['_abc_negative_cache_version']
_dict.pop('_abc_registry', None)
_dict.pop('_abc_cache', None)
_dict.pop('_abc_negative_cache', None)
# _dict.pop('_abc_negative_cache_version', None)
else:
del _dict['_abc_impl']
_dict.pop('_abc_impl', None)
return _dict, attrs

@register(TypeType)
Expand Down

0 comments on commit 580ccdd

Please sign in to comment.