From 15a79ee0ca7ffbe3358910f08f9c1ebb9571e994 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 16 Dec 2019 16:39:08 -0500 Subject: [PATCH] python3: decode the bytes received from get_resources() We're combining it with a str type. --- calibre-plugin/fff_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/fff_plugin.py b/calibre-plugin/fff_plugin.py index 7c8f4c68..51b4f051 100644 --- a/calibre-plugin/fff_plugin.py +++ b/calibre-plugin/fff_plugin.py @@ -405,7 +405,7 @@ class FanFicFarePlugin(InterfaceAction): # get_resources will return a dictionary mapping names to bytes. Names that # are not found in the zip file will not be in the returned dictionary. - text = get_resources('about.html') + text = get_resources('about.html').decode('utf-8') AboutDialog(self.gui,self.qaction.icon(),self.version + text).exec_() def create_menu_item_ex(self, parent_menu, menu_text, image=None, tooltip=None,