MCPcopy Create free account
hub / github.com/catboost/catboost / _capture_port

Method _capture_port

library/python/port_manager/__init__.py:175–177  ·  view source on GitHub ↗
(self, port, sock_type)

Source from the content-addressed store, hash-verified

173 )
174
175 def _capture_port(self, port, sock_type):
176 with self._lock:
177 return self._capture_port_no_lock(port, sock_type)
178
179 def is_port_free(self, port, sock_type=socket.SOCK_STREAM):
180 sock = socket.socket(socket.AF_INET6, sock_type)

Callers 1

_get_portMethod · 0.95

Calls 1

_capture_port_no_lockMethod · 0.95

Tested by

no test coverage detected