From 58de495c54c203dfa838538fb6ca46187120f4e6 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 7 Jun 2014 15:10:56 +0200 Subject: Fixed #17427 -- Removed dubious definition of connections equality. --- django/db/backends/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'django') diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 587cd874d9..7c00773d42 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -73,17 +73,6 @@ class BaseDatabaseWrapper(object): self.allow_thread_sharing = allow_thread_sharing self._thread_ident = thread.get_ident() - def __eq__(self, other): - if isinstance(other, BaseDatabaseWrapper): - return self.alias == other.alias - return NotImplemented - - def __ne__(self, other): - return not self == other - - def __hash__(self): - return hash(self.alias) - @property def queries(self): if len(self.queries_log) == self.queries_log.maxlen: -- cgit v1.3