MCPcopy
hub / github.com/PyMySQL/PyMySQL / _config

Method _config

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected