(self, url)
return decoded_url
Decodes the URL, replaces %XX to their corresponding characters.

        Args:
          url (str): encoded URL.

        Returns:
          str: decoded URL.
Decodes the URL, replaces %XX to their corresponding characters.
Decodes the URL replaces %XX to their corresponding characters .
def _decode_url(self, url):
        """Decodes the URL, replaces %XX to their corresponding characters.

        Args:
          url (str): encoded URL.

        Returns:
          str: decoded URL.
        """
        if not url:
            return ''

        # pylint: disable=too-many-function-args
        decoded_url = urlparse.unquote(url)
        if isinstance(decoded_url, six.binary_type):
            try:
                decoded_url = decoded_url.decode('utf-8')
            except UnicodeDecodeError as exception:
                decoded_url = decoded_url.decode('utf-8', errors='replace')
                logger.warning(
                    'Unable to decode URL: {0:s} with error: {1!s}'.format(
                        url, exception))

        return decoded_url
def _decode_url ( self , url ) : if not url : return '' # pylint: disable=too-many-function-args decoded_url = urlparse . unquote ( url ) if isinstance ( decoded_url , six . binary_type ) : try : decoded_url = decoded_url . decode ( 'utf-8' ) except UnicodeDecodeError as exception : decoded_url = decoded_url . decode ( 'utf-8' , errors = 'replace' ) logger . warning ( 'Unable to decode URL: {0:s} with error: {1!s}' . format ( url , exception ) ) return decoded_url