(af, a1, a2)
| 250 | |
| 251 | |
| 252 | def _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 | |
| 264 | def _matches_destination(af, from_address, destination, ignore_unexpected): |
no outgoing calls
no test coverage detected
searching dependent graphs…