# HG changeset patch # User Julien Cristau # Date 1437746969 -7200 # Node ID 1ee631aedf2f1c67e8dd803e22145c56e5bcb0f4 # Parent 036f5964e6fe33ee3ed18631975092202c04d284 [server/sources] AbstractSource.__ne__ Seems confusing to have __eq__ but not __ne__. diff -r 036f5964e6fe -r 1ee631aedf2f 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