MCPcopy
hub / github.com/benoitc/gunicorn / __str__

Method __str__

gunicorn/sock.py:119–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 FAMILY = socket.AF_INET6
118
119 def __str__(self):
120 (host, port, _, _) = self.sock.getsockname()
121 return "http://[%s]:%d" % (host, port)
122
123
124class UnixSocket(BaseSocket):

Callers

nothing calls this directly

Calls 1

getsocknameMethod · 0.45

Tested by

no test coverage detected