mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 08:58:27 -07:00
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>
This commit is contained in:
16
dev-python/pygments/files/2.0.2-bytes-decode.patch
Normal file
16
dev-python/pygments/files/2.0.2-bytes-decode.patch
Normal file
@@ -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):
|
||||
@@ -36,6 +36,7 @@ S="${WORKDIR}/${MY_P}"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PV}-shell-injection-backport.patch
|
||||
"${FILESDIR}"/${PV}-shell-injection-backport2.patch
|
||||
"${FILESDIR}"/${PV}-bytes-decode.patch
|
||||
)
|
||||
|
||||
python_compile_all() {
|
||||
Reference in New Issue
Block a user