def pr_api_url_from_web_url(url):
 path = '/'.join(map(partial(replace, 'pull', 'pulls'), url_path_parts(url)))
 return ((API_BASE_URL + REPOS_API_PATH) + path)

def pr_api_url_from_web_url ( url ) : path = '/' . join ( map ( partial ( replace , 'pull' , 'pulls' ) , url_path_parts ( url ) ) ) return ( ( API_BASE_URL + REPOS_API_PATH ) + path )
get the api url for a pull request from the web one .