Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Icehouse
python-cliff
0001-Fix-doc-build-with-Python-2.6.x.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-doc-build-with-Python-2.6.x.patch of Package python-cliff
From 7cf3dc000b374bab2a876495ab4528dd9f51d6a2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dirk@dmllr.de> Date: Thu, 30 Jan 2014 16:48:00 +0100 Subject: [PATCH] Fix doc build with Python 2.6.x subprocess.check_output was new in Python 2.7. Use an alternative construct via subprocess.Popen which works on Python 2.6 as well. Change-Id: I0b44fc19183f1c6b23fe5a9cce31de381809534d --- docs/source/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 131a9f9..ee6daeb 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -51,10 +51,8 @@ copyright = u'2012-%s, Doug Hellmann' % datetime.datetime.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 -- 1.8.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor