Python 2.2 support

svn: r666
This commit is contained in:
Don Allingham 2001-12-27 05:33:07 +00:00
parent a2a927932a
commit 88ef8089a6

View File

@ -130,6 +130,8 @@ initintl15()
initintl20()
#elif VER21
initintl21()
#elif VER22
initintl22()
#endif
{
PyObject *m,*d;
@ -139,6 +141,8 @@ initintl21()
m=Py_InitModule("intl20",PyIntl_Methods);
#elif VER21
m=Py_InitModule("intl21",PyIntl_Methods);
#elif VER22
m=Py_InitModule("intl22",PyIntl_Methods);
#endif
d = PyModule_GetDict(m);
PyDict_SetItemString(d,"LC_CTYPE",PyInt_FromLong(LC_CTYPE));