This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository python-efl.
View the commit online.
commit 2236c8ec8f6660071bdea8f7a5b8f118beb3c41f
Author: Dave Andreoli <d...@gurumeditation.it>
AuthorDate: Sat Aug 30 17:56:30 2025 +0200
Cython warnings--
---
src/efl/ecore_file_download.pxi | 2 +-
src/efl/ecore_x_window.pxi | 3 ---
src/efl/edje_object.pxi | 8 ++++----
src/efl/eo.pyx | 4 ++--
src/efl/evas_rect.pxi | 5 ++---
5 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/src/efl/ecore_file_download.pxi b/src/efl/ecore_file_download.pxi
index 994e2cb..df3bc6d 100644
--- a/src/efl/ecore_file_download.pxi
+++ b/src/efl/ecore_file_download.pxi
@@ -81,7 +81,7 @@ cdef class FileDownload(object):
:param progress_cb: A callback called during the download operation
"""
- cdef Ecore_File_Download_Job *job
+ cdef Ecore_File_Download_Job *job = NULL
if completion_cb is not None and not callable(completion_cb):
raise TypeError("Parameter 'completion_cb' must be callable, or None")
diff --git a/src/efl/ecore_x_window.pxi b/src/efl/ecore_x_window.pxi
index b766ca5..01d8627 100644
--- a/src/efl/ecore_x_window.pxi
+++ b/src/efl/ecore_x_window.pxi
@@ -92,9 +92,6 @@ cdef class Window:
def __int__(self):
return self.xid
- def __long__(self):
- return self.xid
-
def delete(self):
"Deletes the current window."
if self.xid != 0:
diff --git a/src/efl/edje_object.pxi b/src/efl/edje_object.pxi
index 4d365e6..a5d0ed8 100644
--- a/src/efl/edje_object.pxi
+++ b/src/efl/edje_object.pxi
@@ -877,8 +877,8 @@ cdef class Edje(Object):
:rtype: bool
"""
cdef Edje_External_Param p
- cdef const char *c_part
- cdef const char *c_param
+ cdef char *c_part
+ cdef char *c_param
if isinstance(part, unicode):
str1 = PyUnicode_AsUTF8String(part)
@@ -929,8 +929,8 @@ cdef class Edje(Object):
:return: *None* for errors, other values depending on the parameter type.
"""
cdef Edje_External_Param p
- cdef const char *c_part
- cdef const char *c_param
+ cdef char *c_part
+ cdef char *c_param
if isinstance(part, unicode):
str1 = PyUnicode_AsUTF8String(part)
diff --git a/src/efl/eo.pyx b/src/efl/eo.pyx
index 9630ba5..6343db7 100644
--- a/src/efl/eo.pyx
+++ b/src/efl/eo.pyx
@@ -246,8 +246,8 @@ cdef class Eo(object):
<uintptr_t>parent,
PY_REFCOUNT(self))
- def __nonzero__(self):
- return 1 if self.obj != NULL else 0
+ def __bool__(self):
+ return self.obj != NULL
cdef int _set_obj(self, cEo *obj) except 0:
assert self.obj == NULL, "Object must be clean"
diff --git a/src/efl/evas_rect.pxi b/src/efl/evas_rect.pxi
index 90c6b33..6ab802f 100644
--- a/src/efl/evas_rect.pxi
+++ b/src/efl/evas_rect.pxi
@@ -429,10 +429,9 @@ cdef class Rect(object):
else:
raise TypeError("unsupported comparison operation")
- def __nonzero__(self):
+ def __bool__(self):
"""Checks whether all coordinates are non-zero."""
- return bool(self.x0 != 0 and self._w != 0 and \
- self.y0 != 0 and self._h != 0)
+ return self.x0 != 0 and self._w != 0 and self.y0 != 0 and self._h != 0
def __contains__(self, obj):
"""Checks if this rectangle contains given rectangle."""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.