(path)
return u'/'.join([
        py3compat.str_to_unicode(unquote(p), encoding='utf8')
        for p in py3compat.unicode_to_str(path, encoding='utf8').split('/')
    ])
Unescape special characters in a URL path

    Turns '/foo%20bar/' into '/foo bar/'
Unescape special characters in a URL path
Unescape special characters in a URL path
def url_unescape(path):
    """Unescape special characters in a URL path

    Turns '/foo%20bar/' into '/foo bar/'
    """
    return u'/'.join([
        py3compat.str_to_unicode(unquote(p), encoding='utf8')
        for p in py3compat.unicode_to_str(path, encoding='utf8').split('/')
    ])
def url_unescape ( path ) : return u'/' . join ( [ py3compat . str_to_unicode ( unquote ( p ) , encoding = 'utf8' ) for p in py3compat . unicode_to_str ( path , encoding = 'utf8' ) . split ( '/' ) ] )