diff mbox

[dpdk-dev,v5,5/7] doc: fix version for python 3

Message ID 1426764204-3882-6-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Thomas Monjalon March 19, 2015, 11:23 a.m. UTC
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 <thomas.monjalon@6wind.com>
---
 doc/guides/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/doc/guides/conf.py b/doc/guides/conf.py
index 264b0cd..7151dfd 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'