diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-07 15:10:56 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-07 17:04:10 +0200 |
| commit | 58de495c54c203dfa838538fb6ca46187120f4e6 (patch) | |
| tree | 0b63bb90c9ba96738c1b00009ecfc62351899208 /django/db/backends/__init__.py | |
| parent | d98cc41a845237edd62013e3156a0991dfb3d93e (diff) | |
Fixed #17427 -- Removed dubious definition of connections equality.
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
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: |
