def merge_paths(base_uri, relative_path):
    if base_uri.path is None and base_uri.authority is not None:
        return '/' + relative_path
    else:
        path = base_uri.path or ''
        index = path.rfind('/')
        return path[:index] + '/' + relative_path
Block until given bytes appear in the stream.
dataset/ETHPy150Open Lukasa/hyper/hyper/packages/rfc3986/misc.py/merge_paths--crossover with--dataset/ETHPy150Open kennethreitz/envoy/envoy/core.py/ConnectedCommand.expect