summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-01-17 12:49:16 +0100
committerSimo Sorce <ssorce@redhat.com>2011-01-25 08:59:50 -0500
commit82b4d5d6e8fba52c63831c6aec6b08e604082132 (patch)
treedc2bf31643a02516ab2a8acbb1cee5bcd7f248a7 /ipapython
parent0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091 (diff)
downloadfreeipa-82b4d5d6e8fba52c63831c6aec6b08e604082132.tar.gz
freeipa-82b4d5d6e8fba52c63831c6aec6b08e604082132.tar.xz
freeipa-82b4d5d6e8fba52c63831c6aec6b08e604082132.zip
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
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/py_default_encoding/default_encoding_utf8.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipapython/py_default_encoding/default_encoding_utf8.c b/ipapython/py_default_encoding/default_encoding_utf8.c
index 79101d993..07adf28ec 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");
}