Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyMySQL/PyMySQL
/ __enter__
Method
__enter__
pymysql/tests/test_connection.py:37–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
self._grant = False
36
37
def
__enter__(self):
38
return
self
39
40
def
__exit__(self, exc_type, exc_value, traceback):
41
if
self._grant:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected