summaryrefslogtreecommitdiffstats
path: root/src/util/sss_python.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-09 19:38:42 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 08:38:29 +0100
commite4796d5ed8e08be7f3767e12753389b18a2ce9f0 (patch)
tree7eed094d964d601a7cd1d6b79849c51ccf39b684 /src/util/sss_python.c
parent03e9d9d6c1d8768a6f70217bababd82de29bc770 (diff)
downloadsssd-e4796d5ed8e08be7f3767e12753389b18a2ce9f0.tar.gz
sssd-e4796d5ed8e08be7f3767e12753389b18a2ce9f0.tar.xz
sssd-e4796d5ed8e08be7f3767e12753389b18a2ce9f0.zip
UTIL: Remove python wrapper sss_python_unicode_from_string
The function PyUnicode_FromString is available in python >= 2.6 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/util/sss_python.c')
-rw-r--r--src/util/sss_python.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/util/sss_python.c b/src/util/sss_python.c
index ba78bf968..560effc26 100644
--- a/src/util/sss_python.c
+++ b/src/util/sss_python.c
@@ -22,16 +22,6 @@
#include "config.h"
PyObject *
-sss_python_unicode_from_string(const char *u)
-{
-#ifdef HAVE_PYUNICODE_FROMSTRING
- return PyUnicode_FromString(u);
-#else
- return PyUnicode_DecodeUTF8(u, strlen(u), NULL);
-#endif
-}
-
-PyObject *
sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict)
{
#ifdef HAVE_PYERR_NEWEXCEPTIONWITHDOC