From 4b78c607242d42cbaa978057b6119a3d1fc72470 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 14 Aug 2024 12:50:47 +0530 Subject: [PATCH] pep8 --- recipes/wash_post.recipe | 3 ++- recipes/wash_post_print.recipe | 3 ++- src/calibre/devices/kobo/driver.py | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/recipes/wash_post.recipe b/recipes/wash_post.recipe index 58d62e834e..a7a026f8b4 100644 --- a/recipes/wash_post.recipe +++ b/recipes/wash_post.recipe @@ -51,7 +51,8 @@ class TheWashingtonPost(BasicNewsRecipe): ''' def get_browser(self): - return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False, user_agent='Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0') + return BasicNewsRecipe.get_browser( + self, verify_ssl_certificates=False, user_agent='Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0') # Official feeds: https://www.washingtonpost.com/discussions/2018/10/12/washington-post-rss-feeds/ feeds = [ diff --git a/recipes/wash_post_print.recipe b/recipes/wash_post_print.recipe index d1d0620f6b..8fbcaebc09 100644 --- a/recipes/wash_post_print.recipe +++ b/recipes/wash_post_print.recipe @@ -36,7 +36,8 @@ class wapoprint(BasicNewsRecipe): ''' def get_browser(self): - return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False, user_agent='Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0') + return BasicNewsRecipe.get_browser( + self, verify_ssl_certificates=False, user_agent='Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0') def parse_index(self): soup = self.index_to_soup('https://www.washingtonpost.com/todays_paper/updates/') diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index abaf3360ac..32f1bab24d 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -716,7 +716,10 @@ class KOBO(USBMS): # for calibre's reference path = self._main_prefix + path + '.kobo' # print "Path: " + path - elif (ContentType == "6" or ContentType == "10") and (MimeType == 'application/x-kobo-epub+zip' or (MimeType == 'application/epub+zip' and self.isTolinoDevice())): + elif (ContentType == "6" or ContentType == "10") and ( + MimeType == 'application/x-kobo-epub+zip' or ( + MimeType == 'application/epub+zip' and self.isTolinoDevice()) + ): if path.startswith("file:///mnt/onboard/"): path = self._main_prefix + path.replace("file:///mnt/onboard/", '') else: