MCPcopy Create free account
hub / github.com/rthalley/dnspython / _addresses_equal

Function _addresses_equal

dns/query.py:252–261  ·  view source on GitHub ↗
(af, a1, a2)

Source from the content-addressed store, hash-verified

250
251
252def _addresses_equal(af, a1, a2):
253 # Convert the first value of the tuple, which is a textual format
254 # address into binary form, so that we are not confused by different
255 # textual representations of the same address
256 try:
257 n1 = dns.inet.inet_pton(af, a1[0])
258 n2 = dns.inet.inet_pton(af, a2[0])
259 except dns.exception.SyntaxError:
260 return False
261 return n1 == n2 and a1[1:] == a2[1:]
262
263
264def _matches_destination(af, from_address, destination, ignore_unexpected):

Callers 1

_matches_destinationFunction · 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…