MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / __enter__

Method __enter__

MySQLdb/connections.py:234–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 return (cursorclass or self.cursorclass)(self)
233
234 def __enter__(self):
235 if self.get_autocommit():
236 self.query("BEGIN")
237 return self.cursor()
238
239 def __exit__(self, exc, value, tb):
240 if exc:

Callers

nothing calls this directly

Calls 1

cursorMethod · 0.95

Tested by

no test coverage detected