This commit is contained in:
Kovid Goyal 2016-12-05 17:07:30 +05:30
parent 353e7c2b36
commit 5f2f8342dc
2 changed files with 2 additions and 1 deletions

View File

@ -301,6 +301,7 @@ class StatsCollector(object):
for v in fum.itervalues(): for v in fum.itervalues():
v['text'] = {safe_chr(x) for x in v['text']} v['text'] = {safe_chr(x) for x in v['text']}
if __name__ == '__main__': if __name__ == '__main__':
from calibre.ebooks.oeb.polish.container import get_container from calibre.ebooks.oeb.polish.container import get_container
from calibre.utils.logging import default_log from calibre.utils.logging import default_log

View File

@ -105,6 +105,7 @@ def subset_all_fonts(container, font_stats, report):
report(_('No embedded fonts found')) report(_('No embedded fonts found'))
return changed return changed
if __name__ == '__main__': if __name__ == '__main__':
from calibre.ebooks.oeb.polish.container import get_container from calibre.ebooks.oeb.polish.container import get_container
from calibre.ebooks.oeb.polish.stats import StatsCollector from calibre.ebooks.oeb.polish.stats import StatsCollector
@ -123,4 +124,3 @@ if __name__ == '__main__':
prints(msg) prints(msg)
print() print()
prints('Output written to:', outbook) prints('Output written to:', outbook)