Removed unused enter/exit methods of MySQL's CursorWrapper.
Unused since their introduction in e1d839237f
.
This commit is contained in:
parent
841b464883
commit
feeafdad02
|
@ -89,14 +89,6 @@ class CursorWrapper:
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.cursor)
|
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):
|
class DatabaseWrapper(BaseDatabaseWrapper):
|
||||||
vendor = 'mysql'
|
vendor = 'mysql'
|
||||||
|
|
Loading…
Reference in New Issue