(self)
Convert to an unpunycoded hostname
Convert to an unpunycoded hostname
Convert to an unpunycoded hostname
def unpunycode(self):
        '''Convert to an unpunycoded hostname'''
        if self._host:
            self._host = IDNA.decode(
                self._host.decode('utf-8'))[0].encode('utf-8')
            return self
        raise TypeError('Cannot unpunycode a relative url')
def unpunycode ( self ) : if self . _host : self . _host = IDNA . decode ( self . _host . decode ( 'utf-8' ) ) [ 0 ] . encode ( 'utf-8' ) return self raise TypeError ( 'Cannot unpunycode a relative url' )