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

Method _count_valid_ports

library/python/port_manager/__init__.py:143–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 )
142
143 def _count_valid_ports(self):
144 res = 0
145 for left, right in self._valid_range:
146 res += right - left
147 assert res, ('There are no available valid ports', self._valid_range)
148 return res
149
150 def _get_port(self, port, sock_type):
151 if port and self._no_random_ports():

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected