1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2026-01-13 19:12:36 +01:00

Adds a more sensible default for options in the Site base class.

This commit is contained in:
Will Oursler 2017-10-13 19:43:38 -04:00
parent c702337040
commit 9b4d2a0998

View file

@ -62,7 +62,10 @@ class Site:
"""
session = attr.ib()
footnotes = attr.ib(default=attr.Factory(list), init=False)
options = attr.ib(default=attr.Factory(dict))
options = attr.ib(default=attr.Factory(
lambda site: site.get_default_options(),
True
))
@staticmethod
def get_default_options():