summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRishav Kundu <rishav.kundu98@gmail.com>2016-01-07 18:38:58 +0530
committerRishav Kundu <rishav.kundu98@gmail.com>2016-01-07 18:38:58 +0530
commit9fbc49268617422361a6b3f6f8fdff2d2c664db2 (patch)
tree8790b96597792c26943a64aeb6a73d5a0b53adb9
parent2a5779a5b44337b8d49cb057fee8945d723589de (diff)
downloadpygments-9fbc49268617422361a6b3f6f8fdff2d2c664db2.tar.gz
Fix byte decoding in py3 for ImageFormatter
subprocess.communicate returns a bytes object
-rw-r--r--pygments/formatters/img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
index 667a8697..a7b5d51e 100644
--- a/pygments/formatters/img.py
+++ b/pygments/formatters/img.py
@@ -83,7 +83,7 @@ class FontManager(object):
if proc.returncode == 0:
lines = stdout.splitlines()
if lines:
- path = lines[0].strip().strip(':')
+ path = lines[0].decode().strip().strip(':')
return path
def _create_nix(self):