File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def summarise_warnings(app, exception):
3636 warnfile = os .path .join (app .outdir , 'refwarn.csv' )
3737 warnfile_count = os .path .join (app .outdir , 'refwarn_count.csv' )
3838
39- with open (warnfile , 'r' , encoding = 'utf-8' ) as f :
39+ with open (warnfile , encoding = 'utf-8' ) as f :
4040 r = csv .reader (f , lineterminator = '\n ' )
4141 next (r , None ) # Skip the header
4242 lines = [tuple (line [:3 ]) for line in r ]
@@ -56,4 +56,8 @@ def setup(app):
5656 w .writerow (('Domain' , 'Type' , 'Target' , 'Source' ))
5757 app .connect ('warn-missing-reference' , warn_missing_reference )
5858 app .connect ('build-finished' , summarise_warnings )
59- return {'version' : '1' , 'parallel_read_safe' : True , 'parallel_write_safe' : True }
59+ return {
60+ 'version' : '1' ,
61+ 'parallel_read_safe' : True ,
62+ 'parallel_write_safe' : True ,
63+ }
You can’t perform that action at this time.
0 commit comments