summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-07-17 13:16:29 -0400
committerGitHub <noreply@github.com>2017-07-17 13:16:29 -0400
commitfeeafdad02e2874e2e2f879a825d3527f6b193ad (patch)
tree715e7590ac52cfdcdbf486348758859a9cf4331f
parent841b4648839ce803b7cd5ca8d689fd488293efbd (diff)
Removed unused enter/exit methods of MySQL's CursorWrapper.
Unused since their introduction in e1d839237f7ce38ef078b7f09cc3a1aeaacc02f0.
-rw-r--r--django/db/backends/mysql/base.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py
index 27e424f12b..0e5c25fc23 100644
--- a/django/db/backends/mysql/base.py
+++ b/django/db/backends/mysql/base.py
@@ -89,14 +89,6 @@ class CursorWrapper:
def __iter__(self):
return iter(self.cursor)
- def __enter__(self):
- return self
-
- def __exit__(self, type, value, traceback):
- # Close instead of passing through to avoid backend-specific behavior
- # (#17671).
- self.close()
-
class DatabaseWrapper(BaseDatabaseWrapper):
vendor = 'mysql'