[pyclutter] Clean up __eq__ and __ne__ for Clutter.Color
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter] Clean up __eq__ and __ne__ for Clutter.Color
- Date: Tue, 14 Apr 2015 12:42:12 +0000 (UTC)
commit 991aef25c26bb266b32dcaa9d478e196fee8a0d3
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Apr 14 13:40:54 2015 +0100
Clean up __eq__ and __ne__ for Clutter.Color
gi/overrides/Clutter.py | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gi/overrides/Clutter.py b/gi/overrides/Clutter.py
index 021ae12..4c36cb3 100644
--- a/gi/overrides/Clutter.py
+++ b/gi/overrides/Clutter.py
@@ -150,12 +150,16 @@ class Color(Clutter.Color):
raise TypeError("sequence index must be integer")
def __eq__(self, other):
- return self.red == other.red and self.green == other.green and \
- self.blue == other.blue and self.alpha == other.alpha
+ return self.red == other.red and \
+ self.green == other.green and \
+ self.blue == other.blue and \
+ self.alpha == other.alpha
def __ne__(self, other):
- return self.red != other.red or self.green != other.green or \
- self.blue != other.blue or self.alpha != other.alpha
+ return self.red != other.red or \
+ self.green != other.green or \
+ self.blue != other.blue or \
+ self.alpha != other.alpha
@giclassoverride
class ActorBox(Clutter.ActorBox):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]