kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=83f37fa9ad9929b54659aa6a8f109b4bcc13b7ac

commit 83f37fa9ad9929b54659aa6a8f109b4bcc13b7ac
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Thu Nov 28 21:06:53 2013 +0200

    Ecore: Fix string handling in Exe.send
---
 efl/ecore/efl.ecore_exe.pxi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efl/ecore/efl.ecore_exe.pxi b/efl/ecore/efl.ecore_exe.pxi
index 0bce88f..760af2f 100644
--- a/efl/ecore/efl.ecore_exe.pxi
+++ b/efl/ecore/efl.ecore_exe.pxi
@@ -413,7 +413,7 @@ cdef class Exe(object):
             Py_buffer buf_view
             bint ret
 
-        if isinstance(buf, (str, unicode)):
+        if isinstance(buf, unicode):
             buf = PyUnicode_AsUTF8String(buf)
 
         PyObject_GetBuffer(buf, &buf_view, 0)

-- 


Reply via email to