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