def full_unescape_to_bytes(u): uu = urlparse.unquote_to_bytes(u) if uu == u: return uu else: return full_unescape_to_bytes(uu)
def unquote_bytes_to_wsgi(bytestring): return unquote_to_bytes(bytestring).decode('latin-1')
def unquote_bytes_to_wsgi(bytestring): return unquote_to_bytes(bytestring)
def unquote_bytes_to_wsgi(bytestring): return unquote_to_bytes(bytestring).decode("latin-1")