mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
py3: don't unpack dict before passing it to new defaultdict constructor
This was never needed, but it breaks on python3 since e.g. None cannot be a keyword. defaultdict can just accept the dict itself, though.
This commit is contained in:
parent
99cb0c4417
commit
2663085c55
@ -76,7 +76,7 @@ class Split(object):
|
||||
if splitter.was_split:
|
||||
am = splitter.anchor_map
|
||||
self.map[item.href] = collections.defaultdict(
|
||||
am.default_factory, **am)
|
||||
am.default_factory, am)
|
||||
|
||||
def find_page_breaks(self, item):
|
||||
if self.page_break_selectors is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user