[server/sources] AbstractSource.__ne__
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 24 Jul 2015 16:09:29 +0200
changeset 10576 1ee631aedf2f
parent 10575 036f5964e6fe
child 10624 48e54aabcd55
[server/sources] AbstractSource.__ne__ Seems confusing to have __eq__ but not __ne__.
server/sources/__init__.py
--- a/server/sources/__init__.py	Fri Jul 24 16:09:37 2015 +0200
+++ b/server/sources/__init__.py	Fri Jul 24 16:09:29 2015 +0200
@@ -128,6 +128,9 @@
     def __eq__(self, other):
         return self.uri == other.uri
 
+    def __ne__(self, other):
+        return not (self == other)
+
     def backup(self, backupfile, confirm, format='native'):
         """method called to create a backup of source's data"""
         pass