Skip to content

Commit 8af7199

Browse files
committed
Lint fix
1 parent bcd6a69 commit 8af7199

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/tools/extensions/refwarn.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)