From b530b8313dd0ccbd3637fae991ea429b14b3ddfb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Oct 2020 20:47:21 +0530 Subject: [PATCH] py3 compat Fixes #1902248 [Calibre crash in get_extra_css(ln 25) bytes-like object needed](https://bugs.launchpad.net/calibre/+bug/1902248) --- recipes/list_apart.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/list_apart.recipe b/recipes/list_apart.recipe index 497889ae1d..d7998ffd62 100644 --- a/recipes/list_apart.recipe +++ b/recipes/list_apart.recipe @@ -23,7 +23,7 @@ class AListApart (BasicNewsRecipe): if not self.extra_css: br = self.get_browser() self.extra_css = br.open_novisit( - 'https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '') + 'https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().decode('utf-8').replace('@charset "UTF-8";', '') return self.extra_css feeds = [