From 5f2f8342dceb9f97f61d3c23f39f68424399eba6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Dec 2016 17:07:30 +0530 Subject: [PATCH] pep8 --- src/calibre/ebooks/oeb/polish/stats.py | 1 + src/calibre/ebooks/oeb/polish/subset.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/stats.py b/src/calibre/ebooks/oeb/polish/stats.py index 15211ac361..2ba92c9ad6 100644 --- a/src/calibre/ebooks/oeb/polish/stats.py +++ b/src/calibre/ebooks/oeb/polish/stats.py @@ -301,6 +301,7 @@ class StatsCollector(object): for v in fum.itervalues(): v['text'] = {safe_chr(x) for x in v['text']} + if __name__ == '__main__': from calibre.ebooks.oeb.polish.container import get_container from calibre.utils.logging import default_log diff --git a/src/calibre/ebooks/oeb/polish/subset.py b/src/calibre/ebooks/oeb/polish/subset.py index 97355fb526..0abfd49e1e 100644 --- a/src/calibre/ebooks/oeb/polish/subset.py +++ b/src/calibre/ebooks/oeb/polish/subset.py @@ -105,6 +105,7 @@ def subset_all_fonts(container, font_stats, report): report(_('No embedded fonts found')) return changed + if __name__ == '__main__': from calibre.ebooks.oeb.polish.container import get_container from calibre.ebooks.oeb.polish.stats import StatsCollector @@ -123,4 +124,3 @@ if __name__ == '__main__': prints(msg) print() prints('Output written to:', outbook) -