gentoo/dev-python/pygments/files/2.0.2-bytes-decode.patch
Justin Lecher 1df3cf378b
dev-python/pygments: Fix byte decoding in py3
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564478

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-12-04 09:34:28 +01:00

17 lines
548 B
Diff

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 db5bee3..12d53cd 100644
--- a/pygments/formatters/img.py
+++ b/pygments/formatters/img.py
@@ -84,7 +84,7 @@ class FontManager(object):
if not exit:
lines = out.splitlines()
if lines:
- path = lines[0].strip().strip(':')
+ path = lines[0].decode().strip().strip(':')
return path
def _create_nix(self):