Skip to content

Commit

Permalink
Now that I understand that it's *types* that cause the problem with l…
Browse files Browse the repository at this point in the history
…eading underscores, rename our private module back to private again.
  • Loading branch information
jamadden committed Jun 27, 2018
1 parent 232b089 commit f9a9592
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ def cythonize(extensions, **_kwargs):
# This list is derived from the profile of bm_simple_iface
# https://github.com/NextThought/nti.externalization/commit/0bc4733aa8158acd0d23c14de2f9347fb698c040
if not PYPY:
# Cython cannot properly handle double leading underscores, so
# our implementation modules can't start with an underscore.
for mod_name in (
'externalization',
'base_interfaces', # private
'_base_interfaces',
'datastructures',
'internalization',
'singleton',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def make_external_dict():
return LocatedExternalDict()

from nti.externalization._compat import import_c_accel # pylint:disable=wrong-import-position
import_c_accel(globals(), 'nti.externalization._base_interfaces')
import_c_accel(globals(), 'nti.externalization.__base_interfaces')
2 changes: 1 addition & 1 deletion src/nti/externalization/_externalization.pxd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# definitions for externalization.pxd
import cython

from ._base_interfaces cimport make_external_dict
from .__base_interfaces cimport make_external_dict


# Imports
Expand Down
4 changes: 2 additions & 2 deletions src/nti/externalization/externalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
from zope.security.interfaces import IPrincipal
from zope.security.management import system_user

from .base_interfaces import make_external_dict
from .base_interfaces import NotGiven
from ._base_interfaces import make_external_dict
from ._base_interfaces import NotGiven


from ._compat import identity
Expand Down

0 comments on commit f9a9592

Please sign in to comment.