1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #23919 -- Removed obsolete __ne__() methods.

__ne__() defaults to the opposite of __eq__() on Python 3
when it doesn't return NotImplemented.
This commit is contained in:
Aymeric Augustin
2017-01-18 21:35:59 +01:00
committed by Tim Graham
parent 3cc5f01d9b
commit eb422e476f
19 changed files with 0 additions and 64 deletions

View File

@@ -62,9 +62,6 @@ class Migration(object):
return False
return (self.name == other.name) and (self.app_label == other.app_label)
def __ne__(self, other):
return not (self == other)
def __repr__(self):
return "<Migration %s.%s>" % (self.app_label, self.name)

View File

@@ -233,9 +233,6 @@ class ProjectState(object):
return False
return all(model == other.models[key] for key, model in self.models.items())
def __ne__(self, other):
return not (self == other)
class AppConfigStub(AppConfig):
"""
@@ -626,6 +623,3 @@ class ModelState(object):
(self.bases == other.bases) and
(self.managers == other.managers)
)
def __ne__(self, other):
return not (self == other)