[gtk-doc] mkpdf: python 2/3 compat fixes
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkpdf: python 2/3 compat fixes
- Date: Fri, 2 Jun 2017 06:59:27 +0000 (UTC)
commit 370e68c62e85874b6d47d06cddd2e6ab1aa6e323
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Jun 2 08:57:55 2017 +0200
mkpdf: python 2/3 compat fixes
gtkdoc/mkpdf.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc/mkpdf.py b/gtkdoc/mkpdf.py
index 953116d..5fd9ecb 100755
--- a/gtkdoc/mkpdf.py
+++ b/gtkdoc/mkpdf.py
@@ -74,7 +74,7 @@ def run(options):
dbcmd = [config.dblatex] + dblatex_options
pc = subprocess.Popen(dbcmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
(stde, _) = pc.communicate()
- for line in stde.split('\n'):
+ for line in stde.decode('utf-8').split('\n'):
if not line.strip():
continue
if 'programlisting or screen' in line:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]