From feeafdad02e2874e2e2f879a825d3527f6b193ad Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 17 Jul 2017 13:16:29 -0400 Subject: [PATCH] Removed unused enter/exit methods of MySQL's CursorWrapper. Unused since their introduction in e1d839237f7ce38ef078b7f09cc3a1aeaacc02f0. --- django/db/backends/mysql/base.py | 8 -------- 1 file changed, 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'