diff options
author | Rishav Kundu <rishav.kundu98@gmail.com> | 2016-01-07 18:38:58 +0530 |
---|---|---|
committer | Rishav Kundu <rishav.kundu98@gmail.com> | 2016-01-07 18:38:58 +0530 |
commit | 9fbc49268617422361a6b3f6f8fdff2d2c664db2 (patch) | |
tree | 8790b96597792c26943a64aeb6a73d5a0b53adb9 | |
parent | 2a5779a5b44337b8d49cb057fee8945d723589de (diff) | |
download | pygments-9fbc49268617422361a6b3f6f8fdff2d2c664db2.tar.gz |
Fix byte decoding in py3 for ImageFormatter
subprocess.communicate returns a bytes object
-rw-r--r-- | pygments/formatters/img.py | 2 |
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): |