@classmethod<EOL><INDENT>def _string_from_ip_int(cls, ip_int=None):<DEDENT>
if ip_int is None:<EOL><INDENT>ip_int = int(cls._ip)<EOL><DEDENT>if ip_int > cls._ALL_ONES:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>hex_str = '<STR_LIT>' % ip_int<EOL>hextets = ['<STR_LIT>' % int(hex_str[x:x + <NUM_LIT:4>], <NUM_LIT:16>) for x in range(<NUM_LIT:0>, <NUM_LIT:32>, <NUM_LIT:4>)]<EOL>hextets = cls._compress_hextets(hextets)<EOL>return '<STR_LIT::>'.join(hextets)<EOL>
Turns a 128-bit integer into hexadecimal notation.

        Args:
            ip_int: An integer, the IP address.

        Returns:
            A string, the hexadecimal representation of the address.

        Raises:
            ValueError: The address is bigger than 128 bits of all ones.