From 94bffad136c7e12210ec4900881809a11a00067a Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 2 Mar 2018 17:01:31 -0800 Subject: [PATCH] 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. --- britney2/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/britney2/utils.py b/britney2/utils.py index 25223c8..837dad6 100644 --- a/britney2/utils.py +++ b/britney2/utils.py @@ -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(),