From 7ab2d1fddf05b577d715a16a8d63e470c12aed6b Mon Sep 17 00:00:00 2001 From: David Wilemski Date: Sat, 10 Feb 2018 21:17:14 -0800 Subject: [PATCH] Decode pandoc --version output into a string --- pelican/tools/pelican_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index ab7e4ae6..0721666a 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -774,7 +774,7 @@ def fields2pelican( def is_pandoc2_installed(): cmd = ['pandoc', '--version'] try: - output = subprocess.check_output(cmd) + output = subprocess.check_output(cmd).decode('utf-8') except subprocess.CalledProcessError: return None