summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--edje/edje.c_edje.pyx32
1 files changed, 0 insertions, 32 deletions
diff --git a/edje/edje.c_edje.pyx b/edje/edje.c_edje.pyx
index b6daf9a..cd7a61d 100644
--- a/edje/edje.c_edje.pyx
+++ b/edje/edje.c_edje.pyx
@@ -30,38 +30,6 @@ cdef int PY_REFCOUNT(object o):
30 cdef PyObject *obj = <PyObject *>o 30 cdef PyObject *obj = <PyObject *>o
31 return obj.ob_refcnt 31 return obj.ob_refcnt
32 32
33cdef unicode _touni(char* s):
34 return s.decode('UTF-8', 'strict')
35
36cdef unicode _ctouni(const_char_ptr s):
37 return s.decode('UTF-8', 'strict')
38
39cdef char* _fruni(s):
40 cdef char* c_string
41 if not s:
42 return NULL
43 if isinstance(s, unicode):
44 string = s.encode('UTF-8')
45 c_string = string
46 elif isinstance(s, str):
47 c_string = s
48 else:
49 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
50 return c_string
51
52cdef const_char_ptr _cfruni(s):
53 cdef const_char_ptr c_string
54 if not s:
55 return NULL
56 if isinstance(s, unicode):
57 string = s.encode('UTF-8')
58 c_string = string
59 elif isinstance(s, str):
60 c_string = s
61 else:
62 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
63 return c_string
64
65def init(): 33def init():
66 cdef int r = edje_init() 34 cdef int r = edje_init()
67 35