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

openSUSE Build Service is sponsored by