def _parse_ip(ip): ''' ''' try: x = socket.inet_aton(ip) return socket.inet_ntoa(x) except: Sploit.parse_error("'%s' is an invalid IP address" % ip)