diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-29 22:10:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-29 22:10:30 (GMT) |
commit | e20056c8f71a8e289016c0cbd5adb5826cd91f64 (patch) | |
tree | 3bdccf6b3978fc4c989e136093e6cff999d01785 /Modules | |
parent | a663121e10265bb4d05b715a262cb4c1d79da082 (diff) | |
download | cpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.zip cpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.tar.gz cpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.tar.bz2 |
fix importing one char extension modules (closes #24328)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testmultiphase.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 0d50db2..7b98be2 100644 --- a/Modules/_testmultiphase.c +++ b/Modules/_testmultiphase.c @@ -321,6 +321,14 @@ PyInitU_eckzbwbhc6jpgzcx415x(PyObject *spec) return PyModuleDef_Init(&def_nonascii_kana); } +/*** Module with a single-character name ***/ + +PyMODINIT_FUNC +PyInit_x(PyObject *spec) +{ + return PyModuleDef_Init(&main_def); +} + /**** Testing NULL slots ****/ static PyModuleDef null_slots_def = TEST_MODULE_DEF( |