(self, ip)
| 131 | return str.decode('gbk') |
| 132 | |
| 133 | def ip2str(self, ip): |
| 134 | return str(ip >> 24) + '.' + str((ip >> 16) & 0xff) + '.' + str((ip >> 8) & 0xff) + '.' + str(ip & 0xff) |
| 135 | |
| 136 | def str2ip(self, s): |
| 137 | (ip,) = struct.unpack('I', socket.inet_aton(s)) |
no outgoing calls
no test coverage detected