Commit 8347aa24 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by ntome

config: Introduce a dumper without aliases

Aliases/anchors are the &things in the YAML dumps.
They require storing a id map of every object to be saved
and may require a lot of memory while saving large items.
parent ee864e8c
......@@ -43,6 +43,11 @@ class WeboobDumper(Dumper):
pass
class WeboobNoAliasDumper(WeboobDumper):
def ignore_aliases(self, data):
return True
WeboobDumper.add_representer(weboob.tools.date.date,
WeboobDumper.represent_date)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment