summaryrefslogtreecommitdiffstats
path: root/src/util
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
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')
-rw-r--r--src/util/sss_python.c10
-rw-r--r--src/util/sss_python.h3
2 files changed, 0 insertions, 13 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
diff --git a/src/util/sss_python.h b/src/util/sss_python.h
index 5521aa5cf..7e2bac336 100644
--- a/src/util/sss_python.h
+++ b/src/util/sss_python.h
@@ -25,9 +25,6 @@
#define PYNUMBER_ASLONG(what) PyInt_AsLong(what)
#endif
-/* Unicode compatibility */
-PyObject *sss_python_unicode_from_string(const char *u);
-
/* Exceptions compatibility */
PyObject *
sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict);