From 7f7e3eb729be0c204b54c1fb11d92986abdf00e1 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 18 Mar 2015 18:25:51 +0100 Subject: [PATCH] doc: fix version for python 3 When generating Latex for PDF, this error occurs: ! Undefined control sequence. \version ->b'2.0.0-rc2\n Decoding bytes stream into UTF-8 fixes the issue. Signed-off-by: Thomas Monjalon Acked-by: John McNamara --- doc/guides/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/conf.py b/doc/guides/conf.py index 264b0cde80..7151dfdf27 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -34,7 +34,7 @@ project = 'DPDK' html_show_copyright = False -version = subprocess.check_output(['make', '-sRrC', '../../', 'showversion']) +version = subprocess.check_output(['make', '-sRrC', '../../', 'showversion']).decode('utf-8') release = version master_doc = 'index' -- 2.20.1