From 8e9590373f5e69fdae7f814deace22adb10f1557 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jul 2009 15:24:24 -0600 Subject: [PATCH] Fix handling of user specified masthead image --- src/calibre/ebooks/mobi/output.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/calibre/ebooks/mobi/output.py b/src/calibre/ebooks/mobi/output.py index bab86390b0..4de346c0af 100644 --- a/src/calibre/ebooks/mobi/output.py +++ b/src/calibre/ebooks/mobi/output.py @@ -48,11 +48,7 @@ class MOBIOutput(OutputFormatPlugin): self.opts.mobi_periodical = False def check_for_masthead(self): - found = False - for typ in self.oeb.guide: - if type == 'masthead': - found = True - break + found = 'masthead' in self.oeb.guide if not found: self.oeb.log.debug('No masthead found, generating default one...') from calibre.resources import server_resources