Merge pull request #23 from dirkmueller/python26x

Fix doc build with Python 2.6.x
This commit is contained in:
Doug Hellmann 2013-06-21 09:18:44 -07:00
commit 6608290ceb

View File

@ -54,7 +54,8 @@ copyright = u'%s, DreamHost' % datetime.date.today().year
# built documents.
#
# The short X.Y version.
version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
version = subprocess.Popen(['sh', '-c', 'cd ../..; python setup.py --version'],
stdout=subprocess.PIPE).stdout.read()
version = version.strip()
# The full version, including alpha/beta/rc tags.
release = version