Unused value in initdefault_encoding_utf8

There is no use for return value of Py_InitModule3. Removing it
in this patch.

https://fedorahosted.org/freeipa/ticket/710
This commit is contained in:
Martin Kosek 2011-01-17 12:49:16 +01:00 committed by Simo Sorce
parent 0c2beda3f7
commit 82b4d5d6e8

View File

@ -52,8 +52,6 @@ static PyMethodDef methods[] = {
PyMODINIT_FUNC
initdefault_encoding_utf8(void)
{
PyObject* m;
PyUnicode_SetDefaultEncoding("utf-8");
m = Py_InitModule3("default_encoding_utf8", methods, "Forces the default encoding to utf-8");
Py_InitModule3("default_encoding_utf8", methods, "Forces the default encoding to utf-8");
}