(ip_string)
| 741 | socket.inet_aton("255.255.255.255") |
| 742 | except socket.error: |
| 743 | def inet_aton(ip_string): |
| 744 | # type: (str) -> bytes |
| 745 | if ip_string == "255.255.255.255": |
| 746 | return b"\xff" * 4 |
| 747 | else: |
| 748 | return socket.inet_aton(ip_string) |
| 749 | else: |
| 750 | inet_aton = socket.inet_aton # type: ignore |
| 751 |