Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _icu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ static PyObject *PyInit_icu(PyObject *m)
/* TODO: Properly implement http://www.python.org/dev/peps/pep-3121/ */
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
/* m_name */ "_icu",
/* m_name */ "icu._icu",
/* m_doc */ "PyICU extension module",
/* m_size */ -1,
/* m_methods */ _icu_funcs,
Expand All @@ -289,7 +289,7 @@ extern "C" {
extern "C" {
void init_icu(void)
{
PyObject *m = Py_InitModule3("_icu", _icu_funcs, "_icu");
PyObject *m = Py_InitModule3("icu._icu", _icu_funcs, "icu._icu");
PyInit_icu(m);
}
}
Expand Down
2 changes: 1 addition & 1 deletion icu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class InvalidArgsError(Exception):
pass


from _icu import *
from icu._icu import *
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def sorted(iterable, *args, **kwargs):
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Localization',
'Topic :: Software Development :: Internationalization'],
ext_modules=[Extension('_icu',
ext_modules=[Extension('icu._icu',
[filename for filename in sorted(os.listdir(os.curdir))
if filename.endswith('.cpp')],
include_dirs=_includes,
Expand Down