MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _get_connected_host

Function _get_connected_host

tests/test_connect.py:2998–3002  ·  view source on GitHub ↗
(con)

Source from the content-addressed store, hash-verified

2996
2997
2998def _get_connected_host(con):
2999 peername = con._transport.get_extra_info('peername')
3000 if isinstance(peername, tuple):
3001 peername = "".join((str(s) for s in peername if s))
3002 return peername

Calls

no outgoing calls

Tested by

no test coverage detected