commit: 1df3cf378b95f59d76c98bfca0f23648cbabce2b Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Fri Dec 4 08:34:28 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Fri Dec 4 08:34:28 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1df3cf37
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 <AT> gentoo.org> dev-python/pygments/files/2.0.2-bytes-decode.patch | 16 ++++++++++++++++ ...pygments-2.0.2-r1.ebuild => pygments-2.0.2-r2.ebuild} | 1 + 2 files changed, 17 insertions(+) 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 0000000..35f2e26 --- /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): diff --git a/dev-python/pygments/pygments-2.0.2-r1.ebuild b/dev-python/pygments/pygments-2.0.2-r2.ebuild similarity index 97% rename from dev-python/pygments/pygments-2.0.2-r1.ebuild rename to dev-python/pygments/pygments-2.0.2-r2.ebuild index b2de015..adef7af 100644 --- a/dev-python/pygments/pygments-2.0.2-r1.ebuild +++ b/dev-python/pygments/pygments-2.0.2-r2.ebuild @@ -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() {
