mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-23 08:21:30 +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))
|
ensuredir(os.path.dirname(dest_file))
|
||||||
with open(dest_file, 'w', encoding='utf-8') as f:
|
with open(dest_file, 'w', encoding='utf-8') as f:
|
||||||
edatalist = [e.excusedata() for e in excuselist]
|
edatalist = [e.excusedata() for e in excuselist]
|
||||||
|
for e in edatalist:
|
||||||
|
del(e['excuses'])
|
||||||
excusesdata = {
|
excusesdata = {
|
||||||
'sources': edatalist,
|
'sources': edatalist,
|
||||||
'generated-date': datetime.utcnow(),
|
'generated-date': datetime.utcnow(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user