1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-21 05:31:30 +02:00

Finalizing logging transition.

This commit is contained in:
2021-06-24 20:31:37 +02:00
parent 230fe90e69
commit 0a9536b180
16 changed files with 74 additions and 94 deletions
@@ -1,11 +1,6 @@
from ebook_converter.ebooks.oeb.base import XPath
__license__ = 'GPL v3'
__copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
class CSSCleanup(object):
def __init__(self, log, opts):
@@ -34,7 +29,7 @@ def remove_duplicate_anchors(oeb):
anchor = tag.get(attr)
if anchor is not None:
if anchor in seen:
oeb.log.debug('Removing duplicate anchor:', anchor)
oeb.log.debug('Removing duplicate anchor: %s', anchor)
tag.attrib.pop(attr)
else:
seen.add(anchor)