MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _get_connected_host

Function _get_connected_host

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

Source from the content-addressed store, hash-verified

2373
2374
2375def _get_connected_host(con):
2376 peername = con._transport.get_extra_info('peername')
2377 if isinstance(peername, tuple):
2378 peername = "".join((str(s) for s in peername if s))
2379 return peername

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…