Package: python-latexcodec / 1.0.5-1

Fix-version-query-in-docs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Wed, 12 Jul 2017 10:02:10 +0100
Subject: Fix version query in docs

---
 doc/conf.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/conf.py b/doc/conf.py
index 8794e64..cd257e1 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -3,6 +3,8 @@
 # latexcodec documentation build configuration file, created by
 # sphinx-quickstart on Wed Aug  3 15:45:22 2011.
 
+import io
+
 extensions = [
     'sphinx.ext.autodoc',
     'sphinx.ext.doctest',
@@ -15,7 +17,7 @@ source_suffix = '.rst'
 master_doc = 'index'
 project = u'latexcodec'
 copyright = u'2011-2014, Matthias C. M. Troffaes'
-with open("../VERSION", "rb") as version_file:
+with io.open("../VERSION") as version_file:
     release = version_file.read().strip()
 version = '.'.join(release.split('.')[:2])
 exclude_patterns = ['_build']