kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=186e9f8c84c32f3e35c930a1719957d4dfc7b0d2
commit 186e9f8c84c32f3e35c930a1719957d4dfc7b0d2 Author: Kai Huuhko <kai.huu...@gmail.com> Date: Mon Apr 14 01:21:49 2014 +0300 Code cleanup: Simplify chained comparison --- efl/evas/efl.evas_rect.pxi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/efl/evas/efl.evas_rect.pxi b/efl/evas/efl.evas_rect.pxi index 8317ee2..db63cf3 100644 --- a/efl/evas/efl.evas_rect.pxi +++ b/efl/evas/efl.evas_rect.pxi @@ -477,17 +477,17 @@ cdef class Rect(object): top = o.top bottom = o.bottom - a = left <= self.x0 and self.x0 <= right - b = left <= self.x1 and self.x1 <= right - c = top <= self.y0 and self.y0 <= bottom - d = top <= self.y1 and self.y1 <= bottom + a = left <= self.x0 <= right + b = left <= self.x1 <= right + c = top <= self.y0 <= bottom + d = top <= self.y1 <= bottom if (a or b) and (c or d): return True - a = self.x0 <= left and left <= self.x1 - b = self.x0 <= right and right <= self.x1 - c = self.y0 <= top and top <= self.y1 - d = self.y0 <= bottom and bottom <= self.y1 + a = self.x0 <= left <= self.x1 + b = self.x0 <= right <= self.x1 + c = self.y0 <= top <= self.y1 + d = self.y0 <= bottom <= self.y1 return bool((a or b) and (c or d)) def clip(self, obj): --