Mercurial > hg
changeset 32028:99f63f476a72
upgrade: implement '__ne__' on 'improvement' class
The pythonomicon request its implementation.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 17 Apr 2017 13:07:22 +0200 |
parents | 8b7f794d6a9d |
children | 9e35848fa007 |
files | mercurial/upgrade.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/upgrade.py Sun Apr 16 02:34:08 2017 +0200 +++ b/mercurial/upgrade.py Mon Apr 17 13:07:22 2017 +0200 @@ -144,6 +144,9 @@ return NotImplemented return self.name == other.name + def __ne__(self, other): + return not self == other + def finddeficiencies(repo): """returns a list of deficiencies that the repo suffer from""" newreporeqs = localrepo.newreporequirements(repo)