MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _config

Method _config

pymysql/connections.py:252–258  ·  view source on GitHub ↗
(key, arg)

Source from the content-addressed store, hash-verified

250 cfg.read(os.path.expanduser(read_default_file))
251
252 def _config(key, arg):
253 if arg:
254 return arg
255 try:
256 return cfg.get(read_default_group, key)
257 except Exception:
258 return arg
259
260 user = _config("user", user)
261 password = _config("password", password)

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected