changeset 40997:038108a9811c

upgrade: correct implementation of improvement.__ne__ The "not" operator binds more closely than "==": >>> not False == False False
author Benjamin Peterson <benjamin@python.org>
date Thu, 13 Dec 2018 23:20:28 -0800
parents 6f2510b581a0
children 042ed354b9eb
files mercurial/upgrade.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Sat Dec 15 16:28:29 2018 +0900
+++ b/mercurial/upgrade.py	Thu Dec 13 23:20:28 2018 -0800
@@ -142,7 +142,7 @@
         return self.name == other.name
 
     def __ne__(self, other):
-        return not self == other
+        return not (self == other)
 
     def __hash__(self):
         return hash(self.name)