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

Method ancillaryMapping

Lib/test/test_socket.py:4436–4444  ·  view source on GitHub ↗
(self, ancdata)

Source from the content-addressed store, hash-verified

4434 traffic_class = -1
4435
4436 def ancillaryMapping(self, ancdata):
4437 # Given ancillary data list ancdata, return a mapping from
4438 # pairs (cmsg_level, cmsg_type) to corresponding cmsg_data.
4439 # Check that no (level, type) pair appears more than once.
4440 d = {}
4441 for cmsg_level, cmsg_type, cmsg_data in ancdata:
4442 self.assertNotIn((cmsg_level, cmsg_type), d)
4443 d[(cmsg_level, cmsg_type)] = cmsg_data
4444 return d
4445
4446 def checkHopLimit(self, ancbufsize, maxhop=255, ignoreflags=0):
4447 # Receive hop limit into ancbufsize bytes of ancillary data

Callers 1

Calls 1

assertNotInMethod · 0.80

Tested by

no test coverage detected