davemds pushed a commit to branch master.
commit 1a910cfab3e4bc5821b82bc5be6b0556163c7c67
Author: davemds <[email protected]>
Date: Wed Apr 3 17:30:37 2013 +0200
Python-EFL: ecore file_download: another py3 fix
---
efl/ecore/efl.ecore.pyx | 3 +--
efl/ecore/efl.ecore_file_download.pxi | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/efl/ecore/efl.ecore.pyx b/efl/ecore/efl.ecore.pyx
index 9fc1fae..5a40b66 100644
--- a/efl/ecore/efl.ecore.pyx
+++ b/efl/ecore/efl.ecore.pyx
@@ -16,8 +16,7 @@
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
import traceback
-from efl.eo cimport Eo
-from efl.eo cimport PY_REFCOUNT
+from efl.eo cimport Eo, PY_REFCOUNT, _ctouni
from cpython cimport Py_INCREF, Py_DECREF
diff --git a/efl/ecore/efl.ecore_file_download.pxi
b/efl/ecore/efl.ecore_file_download.pxi
index 9fc3f32..4f4a4f5 100644
--- a/efl/ecore/efl.ecore_file_download.pxi
+++ b/efl/ecore/efl.ecore_file_download.pxi
@@ -123,12 +123,12 @@ cdef class FileDownload(object):
cdef object _exec_completion(self, const_char *file, int status):
if self.completion_cb:
- self.completion_cb(file, status, *self.args, **self.kargs)
+ self.completion_cb(_ctouni(file), status, *self.args, **self.kargs)
cdef object _exec_progress(self, const_char *file, long int dltotal,
long int dlnow, long int ultotal, long int ulnow):
if self.progress_cb:
- return self.progress_cb(file, dltotal, dlnow, ultotal, ulnow,
+ return self.progress_cb(_ctouni(file), dltotal, dlnow, ultotal,
ulnow,
*self.args, **self.kargs)
return 0
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html