mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-15 21:21:10 +00:00
As near as I can tell, the 'excuses' element within the yaml data is a
complete duplication of other structured data elsewhere in the yaml, and does nothing but slow down the yaml parsing. So, just avoid emitting it.
This commit is contained in:
parent
0969097d48
commit
94bffad136
@ -368,6 +368,8 @@ def write_excuses(excuselist, dest_file, output_format="yaml"):
|
||||
ensuredir(os.path.dirname(dest_file))
|
||||
with open(dest_file, 'w', encoding='utf-8') as f:
|
||||
edatalist = [e.excusedata() for e in excuselist]
|
||||
for e in edatalist:
|
||||
del(e['excuses'])
|
||||
excusesdata = {
|
||||
'sources': edatalist,
|
||||
'generated-date': datetime.utcnow(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user