Skip to content

Commit

Permalink
Fix python implementation pickling (#91)
Browse files Browse the repository at this point in the history
* Move python implementation to _frozendictpy

* Fix #87

* Remove module_patch

* whitespace

* whitespace

* Feedback
  • Loading branch information
apmorton authored Nov 28, 2023
1 parent 7271f46 commit 60211ac
Show file tree
Hide file tree
Showing 4 changed files with 604 additions and 586 deletions.
6 changes: 3 additions & 3 deletions src/frozendict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
c_ext = True
del _frozendict
except ImportError:
from .core import *
from ._frozendict_py import *
c_ext = False

from .version import version as __version__
Expand Down Expand Up @@ -47,8 +47,8 @@ def default(self, obj):
if c_ext:
__all__ = (frozendict.__name__, )
else:
__all__ = core.__all__
del core
__all__ = _frozendict_py.__all__
del _frozendict_py

# TODO deprecated, to remove in future versions
FrozenOrderedDict = frozendict
Expand Down
Loading

0 comments on commit 60211ac

Please sign in to comment.