summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-12-04 09:34:28 +0100
committerJustin Lecher <jlec@gentoo.org>2015-12-04 09:34:28 +0100
commit1df3cf378b95f59d76c98bfca0f23648cbabce2b (patch)
treea62f0a4027d854f0165c74cc09de28068919a8e9 /dev-python/pygments/files
parentapp-editors/dhex: Fix for ncurses[tinfo] (diff)
downloadgentoo-1df3cf378b95f59d76c98bfca0f23648cbabce2b.tar.gz
gentoo-1df3cf378b95f59d76c98bfca0f23648cbabce2b.tar.bz2
gentoo-1df3cf378b95f59d76c98bfca0f23648cbabce2b.zip
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>
Diffstat (limited to 'dev-python/pygments/files')
-rw-r--r--dev-python/pygments/files/2.0.2-bytes-decode.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pygments/files/2.0.2-bytes-decode.patch b/dev-python/pygments/files/2.0.2-bytes-decode.patch
new file mode 100644
index 000000000000..35f2e26aaca5
--- /dev/null
+++ b/dev-python/pygments/files/2.0.2-bytes-decode.patch
@@ -0,0 +1,16 @@
+ 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):