From 9fbc49268617422361a6b3f6f8fdff2d2c664db2 Mon Sep 17 00:00:00 2001 From: Rishav Kundu Date: Thu, 7 Jan 2016 18:38:58 +0530 Subject: Fix byte decoding in py3 for ImageFormatter subprocess.communicate returns a bytes object --- pygments/formatters/img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1