summaryrefslogtreecommitdiff
path: root/efl/eo
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-06 01:50:29 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-06 01:50:29 +0300
commitb547ff2aa2064b98021d6f458cfc3d44a9936544 (patch)
tree4d974345bef5b05e4cfc3f94a56755d6a15b5166 /efl/eo
parent75c8351fdf8594bffdc82fb92f6715324c15111e (diff)
Remove Python -> C string hacks
Diffstat (limited to 'efl/eo')
-rw-r--r--efl/eo/efl.eo.pyx3
1 files changed, 1 insertions, 2 deletions
diff --git a/efl/eo/efl.eo.pyx b/efl/eo/efl.eo.pyx
index 33557d2..f3b7396 100644
--- a/efl/eo/efl.eo.pyx
+++ b/efl/eo/efl.eo.pyx
@@ -15,7 +15,7 @@
15# You should have received a copy of the GNU Lesser General Public License 15# You should have received a copy of the GNU Lesser General Public License
16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
17 17
18from cpython cimport PyObject, Py_INCREF, Py_DECREF, PyUnicode_AsUTF8String 18from cpython cimport PyObject, Py_INCREF, Py_DECREF
19from libc.stdlib cimport malloc, free 19from libc.stdlib cimport malloc, free
20from libc.string cimport memcpy, strdup 20from libc.string cimport memcpy, strdup
21from libc.stdint cimport uintptr_t 21from libc.stdint cimport uintptr_t
@@ -92,7 +92,6 @@ cdef void _object_mapping_register(char *name, object cls) except *:
92 raise ValueError("Object type name '%s' already registered." % name) 92 raise ValueError("Object type name '%s' already registered." % name)
93 93
94 cdef object cls_name = cls.__name__ 94 cdef object cls_name = cls.__name__
95 if isinstance(cls_name, unicode): cls_name = PyUnicode_AsUTF8String(cls_name)
96 95
97 EINA_LOG_DOM_DBG(PY_EFL_EO_LOG_DOMAIN, 96 EINA_LOG_DOM_DBG(PY_EFL_EO_LOG_DOMAIN,
98 "REGISTER: %s => %s", <char *>name, <char *>cls_name) 97 "REGISTER: %s => %s", <char *>name, <char *>cls_name)