From 54c3df60cd533ea80d347f6715ee84f6a560b5d5 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 17 May 2010 23:21:22 +0200 Subject: [PATCH] Fixed a doc config error --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b4731fff..5127a66c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ import pkg_resources # |version| and |release|, also used in various other places throughout the # built documents. release = __import__('pkg_resources').get_distribution('Flask').version +if 'dev' in release: + release = release.split('dev')[0] + 'dev' version = '.'.join(release.split('.')[:2]) -if 'dev' in version: - version = version.split('dev')[0] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.