mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat
Fixes #1902248 [Calibre crash in get_extra_css(ln 25) bytes-like object needed](https://bugs.launchpad.net/calibre/+bug/1902248)
This commit is contained in:
parent
d46c192c4c
commit
b530b8313d
@ -23,7 +23,7 @@ class AListApart (BasicNewsRecipe):
|
|||||||
if not self.extra_css:
|
if not self.extra_css:
|
||||||
br = self.get_browser()
|
br = self.get_browser()
|
||||||
self.extra_css = br.open_novisit(
|
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
|
return self.extra_css
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user