mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
pep8
This commit is contained in:
parent
353e7c2b36
commit
5f2f8342dc
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user