summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'