File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def _aslist(inlist):
38
38
aff_indexes = [
39
39
', ' .join (
40
40
[
41
- '%d' % (affiliations .index (a ) + 1 )
41
+ str (affiliations .index (a ) + 1 )
42
42
for a in _aslist (author .get ('affiliation' , 'Unaffiliated' ))
43
43
]
44
44
)
@@ -52,7 +52,7 @@ def _aslist(inlist):
52
52
file = sys .stderr ,
53
53
)
54
54
55
- print ('Authors (%d):' % len (author_matches ))
55
+ print (f 'Authors ({ len (author_matches )} ):' )
56
56
print (
57
57
'{}.' .format (
58
58
'; ' .join (
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ def _aslist(value):
259
259
aff_indexes = [
260
260
', ' .join (
261
261
[
262
- '%d' % (affiliations .index (a ) + 1 )
262
+ str (affiliations .index (a ) + 1 )
263
263
for a in _aslist (author .get ('affiliation' , 'Unaffiliated' ))
264
264
]
265
265
)
@@ -272,7 +272,7 @@ def _aslist(value):
272
272
file = sys .stderr ,
273
273
)
274
274
275
- print ('Authors (%d):' % len (hits ))
275
+ print (f 'Authors ({ len (hits )} ):' )
276
276
print (
277
277
'{}.' .format (
278
278
'; ' .join (
You can’t perform that action at this time.
0 commit comments