"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/conf.py" between
flask-1.1.1.tar.gz and flask-1.1.2.tar.gz

About: Flask is a lightweight Python WSGI web application framework.

conf.py  (flask-1.1.1):conf.py  (flask-1.1.2)
import packaging.version
from pallets_sphinx_themes import get_version from pallets_sphinx_themes import get_version
from pallets_sphinx_themes import ProjectLink from pallets_sphinx_themes import ProjectLink
# Project -------------------------------------------------------------- # Project --------------------------------------------------------------
project = "Flask" project = "Flask"
copyright = "2010 Pallets" copyright = "2010 Pallets"
author = "Pallets" author = "Pallets"
release, version = get_version("Flask") release, version = get_version("Flask")
skipping to change at line 76 skipping to change at line 77
app = inliner.document.settings.env.app app = inliner.document.settings.env.app
release = app.config.release release = app.config.release
base_url = "https://github.com/pallets/flask/tree/" base_url = "https://github.com/pallets/flask/tree/"
if text.endswith(">"): if text.endswith(">"):
words, text = text[:-1].rsplit("<", 1) words, text = text[:-1].rsplit("<", 1)
words = words.strip() words = words.strip()
else: else:
words = None words = None
if release.endswith("dev"): if packaging.version.parse(release).is_devrelease:
url = "{0}master/{1}".format(base_url, text) url = "{0}master/{1}".format(base_url, text)
else: else:
url = "{0}{1}/{2}".format(base_url, release, text) url = "{0}{1}/{2}".format(base_url, release, text)
if words is None: if words is None:
words = url words = url
from docutils.nodes import reference from docutils.nodes import reference
from docutils.parsers.rst.roles import set_classes from docutils.parsers.rst.roles import set_classes
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)