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:
Eli Schwartz 2019-04-25 03:32:21 -04:00
parent 99cb0c4417
commit 2663085c55
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -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: