From cdbf10ffabfc61339610707671d8552fd618af59 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Sep 2013 10:20:40 +0530 Subject: [PATCH] pep8 --- src/calibre/ebooks/conversion/plugins/mobi_output.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/mobi_output.py b/src/calibre/ebooks/conversion/plugins/mobi_output.py index b5dc6f17d5..0bdb26162c 100644 --- a/src/calibre/ebooks/conversion/plugins/mobi_output.py +++ b/src/calibre/ebooks/conversion/plugins/mobi_output.py @@ -148,7 +148,6 @@ class MOBIOutput(OutputFormatPlugin): self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href]) x.href = articles_[0].href - for sec in sections: articles[id(sec)] = [] for a in list(sec): @@ -179,7 +178,7 @@ class MOBIOutput(OutputFormatPlugin): mobi_type = opts.mobi_file_type if self.is_periodical: - mobi_type = 'old' # Amazon does not support KF8 periodicals + mobi_type = 'old' # Amazon does not support KF8 periodicals create_kf8 = mobi_type in ('new', 'both') remove_html_cover(self.oeb, self.log) @@ -188,12 +187,10 @@ class MOBIOutput(OutputFormatPlugin): self.check_for_periodical() if create_kf8: - # Split on pagebreaks so that the resulting KF8 works better with - # calibre's viewer, which does not support CSS page breaks + # Split on pagebreaks so that the resulting KF8 is faster to load from calibre.ebooks.oeb.transforms.split import Split Split()(self.oeb, self.opts) - kf8 = self.create_kf8(resources, for_joint=mobi_type=='both' ) if create_kf8 else None if mobi_type == 'new':