#NEWLINE# def make_conduit_uri( uri ) : #NEWLINE# #INDENT# "Return the expected conduit uri based on the supplied 'uri'.\n\n    Usage examples:\n        >>> make_conduit_uri('http://127.0.0.1')\n        'http://127.0.0.1/api/'\n\n        >>> make_conduit_uri('http://127.0.0.1/')\n        'http://127.0.0.1/api/'\n\n        >>> make_conduit_uri('http://127.0.0.1/conduit/')\n        'http://127.0.0.1/api/'\n\n    :uri: a uri to the Phabricator instance\n    :returns: the expected conduit uri\n\n    " #NEWLINE# url = urlparse . urlparse ( uri ) #NEWLINE# expected = ( ( ( url . scheme + '://' ) + url . netloc ) + '/api/' ) #NEWLINE# return uri