From 82b4d5d6e8fba52c63831c6aec6b08e604082132 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 17 Jan 2011 12:49:16 +0100 Subject: 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 --- ipapython/py_default_encoding/default_encoding_utf8.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ipapython/py_default_encoding') diff --git a/ipapython/py_default_encoding/default_encoding_utf8.c b/ipapython/py_default_encoding/default_encoding_utf8.c index 79101d99..07adf28e 100644 --- a/ipapython/py_default_encoding/default_encoding_utf8.c +++ b/ipapython/py_default_encoding/default_encoding_utf8.c @@ -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"); } -- cgit