MCPcopy Index your code
hub / github.com/python/cpython / _validate_family

Function _validate_family

Lib/multiprocessing/connection.py:87–97  ·  view source on GitHub ↗

Checks if the family is valid for the current environment.

(family)

Source from the content-addressed store, hash-verified

85 raise ValueError('unrecognized family')
86
87def _validate_family(family):
88 '''
89 Checks if the family is valid for the current environment.
90 '''
91 if sys.platform != 'win32' and family == 'AF_PIPE':
92 raise ValueError('Family %s is not recognized.' % family)
93
94 if sys.platform == 'win32' and family == 'AF_UNIX':
95 # double check
96 if not hasattr(socket, family):
97 raise ValueError('Family %s is not recognized.' % family)
98
99def address_type(address):
100 '''

Callers 2

__init__Method · 0.85
ClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…