def long_description_from_readme(rst):
    # In release branches, freeze some external links to refer to this X.Y version:
    if not "dev" in __version__:
        rst = re.sub(r'branch=master', 'branch=v' + __minor_version__, rst)  # Travis build status
        rst = re.sub(r'/latest', '/v' + __minor_version__, rst)  # ReadTheDocs
    return rst
dataset/ETHPy150Open brack3t/Djrill/setup.py/long_description_from_readme/original