Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f386b63

Browse files
Clean up some ifdefs in _testcapimodule.
1 parent 60b89c9 commit f386b63

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Modules/_testcapimodule.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,6 @@ getargs_y_hash(PyObject *self, PyObject *args)
14101410
return PyBytes_FromStringAndSize(str, size);
14111411
}
14121412

1413-
//#if USE_UNICODE_WCHAR_CACHE
14141413
static PyObject *
14151414
getargs_u(PyObject *self, PyObject *args)
14161415
{
@@ -1454,7 +1453,6 @@ getargs_Z_hash(PyObject *self, PyObject *args)
14541453
else
14551454
Py_RETURN_NONE;
14561455
}
1457-
// #endif /* USE_UNICODE_WCHAR_CACHE */
14581456

14591457
static PyObject *
14601458
getargs_es(PyObject *self, PyObject *args)
@@ -4817,12 +4815,10 @@ static PyMethodDef TestMethods[] = {
48174815
{"getargs_y", getargs_y, METH_VARARGS},
48184816
{"getargs_y_star", getargs_y_star, METH_VARARGS},
48194817
{"getargs_y_hash", getargs_y_hash, METH_VARARGS},
4820-
// #if USE_UNICODE_WCHAR_CACHE
48214818
{"getargs_u", getargs_u, METH_VARARGS},
48224819
{"getargs_u_hash", getargs_u_hash, METH_VARARGS},
48234820
{"getargs_Z", getargs_Z, METH_VARARGS},
48244821
{"getargs_Z_hash", getargs_Z_hash, METH_VARARGS},
4825-
// #endif /* USE_UNICODE_WCHAR_CACHE */
48264822
{"getargs_w_star", getargs_w_star, METH_VARARGS},
48274823
{"getargs_es", getargs_es, METH_VARARGS},
48284824
{"getargs_et", getargs_et, METH_VARARGS},
@@ -4846,8 +4842,6 @@ static PyMethodDef TestMethods[] = {
48464842
#if USE_UNICODE_WCHAR_CACHE
48474843
{"unicode_encodedecimal", unicode_encodedecimal, METH_VARARGS},
48484844
{"unicode_transformdecimaltoascii", unicode_transformdecimaltoascii, METH_VARARGS},
4849-
#endif /* USE_UNICODE_WCHAR_CACHE */
4850-
#if USE_UNICODE_WCHAR_CACHE
48514845
{"unicode_legacy_string", unicode_legacy_string, METH_VARARGS},
48524846
#endif /* USE_UNICODE_WCHAR_CACHE */
48534847
{"_test_thread_state", test_thread_state, METH_VARARGS},

0 commit comments

Comments
 (0)