Skip to content

Commit 05621c6

Browse files
committed
sty: Apply UP031 to .maint scripts
1 parent 0244297 commit 05621c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.maint/paper_author_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _aslist(inlist):
3838
aff_indexes = [
3939
', '.join(
4040
[
41-
'%d' % (affiliations.index(a) + 1)
41+
str(affiliations.index(a) + 1)
4242
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
4343
]
4444
)
@@ -52,7 +52,7 @@ def _aslist(inlist):
5252
file=sys.stderr,
5353
)
5454

55-
print('Authors (%d):' % len(author_matches))
55+
print(f'Authors ({len(author_matches)}):')
5656
print(
5757
'{}.'.format(
5858
'; '.join(

.maint/update_authors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _aslist(value):
259259
aff_indexes = [
260260
', '.join(
261261
[
262-
'%d' % (affiliations.index(a) + 1)
262+
str(affiliations.index(a) + 1)
263263
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
264264
]
265265
)
@@ -272,7 +272,7 @@ def _aslist(value):
272272
file=sys.stderr,
273273
)
274274

275-
print('Authors (%d):' % len(hits))
275+
print(f'Authors ({len(hits)}):')
276276
print(
277277
'{}.'.format(
278278
'; '.join(

0 commit comments

Comments
 (0)