def escape_uri_path(path):
 return quote(force_bytes(path), safe="/:@&+$,-_.!~*'()")

def escape_uri_path ( path ) : return quote ( force_bytes ( path ) , safe = "/:@&+$,-_.!~*'()" )
escape the unsafe characters from the path portion of a uniform resource identifier .