(self, wantprefixlen=None)
return ret + self._printPrefix(wantprefixlen)
Return a string representation in the usual format.

        >>> print IP('127.0.0.1').strNormal()
        127.0.0.1
        >>> print IP('2001:0658:022a:cafe:0200::1').strNormal()
        2001:658:22a:cafe:200:0:0:1
Return a string representation in the usual format.
Return a string representation in the usual format .
def strNormal(self, wantprefixlen=None):
        """Return a string representation in the usual format.

        >>> print IP('127.0.0.1').strNormal()
        127.0.0.1
        >>> print IP('2001:0658:022a:cafe:0200::1').strNormal()
        2001:658:22a:cafe:200:0:0:1
        """

        if self.WantPrefixLen is None and wantprefixlen is None:
            wantprefixlen = 1

        if self._ipversion == 4:
            ret = self.strFullsize(0)
        elif self._ipversion == 6:
            ret = ':'.join([hex(x)[2:] for x in [int(x, 16)
                           for x in self.strFullsize(0).split(':')]])
        else:
            raise ValueError("only IPv4 and IPv6 supported")

        return ret + self._printPrefix(wantprefixlen)
def strNormal ( self , wantprefixlen = None ) : if self . WantPrefixLen is None and wantprefixlen is None : wantprefixlen = 1 if self . _ipversion == 4 : ret = self . strFullsize ( 0 ) elif self . _ipversion == 6 : ret = ':' . join ( [ hex ( x ) [ 2 : ] for x in [ int ( x , 16 ) for x in self . strFullsize ( 0 ) . split ( ':' ) ] ] ) else : raise ValueError ( "only IPv4 and IPv6 supported" ) return ret + self . _printPrefix ( wantprefixlen )