doc: fix version for python 3
authorThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Mar 2015 17:25:51 +0000 (18:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 Mar 2015 16:58:34 +0000 (17:58 +0100)
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>
Acked-by: John McNamara <john.mcnamara@intel.com>
doc/guides/conf.py

index 264b0cd..7151dfd 100644 (file)
@@ -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'