@@ -223,42 +223,42 @@ def print_plugins(self):
223
223
"""List all currently loaded plugins."""
224
224
# Get header messages
225
225
message = self .translations [
226
- 'Plugins' ].get_string () + ' \n ' + '= ' * 61 + '\n \n '
226
+ 'Plugins' ].get_string () + f' { len ( self . manager ) } \n ' + '- ' * 61 + '\n \n '
227
227
228
228
# Loop through all loaded plugins
229
229
for plugin_name in sorted (self .manager ):
230
230
info = self .manager [plugin_name ].info
231
231
232
- message += plugin_name + ' ({}):\n ' . format ( info . verbose_name )
232
+ message += plugin_name + f ' ({ info . verbose_name } ):\n '
233
233
234
234
if info .author is not None :
235
- message += ' author: {}\n ' . format ( info . author )
235
+ message += f ' author: { info . author } \n '
236
236
237
237
if info .description is not None :
238
- message += ' description: {}\n ' . format ( info . description )
238
+ message += f ' description: { info . description } \n '
239
239
240
240
if info .version != 'unversioned' :
241
- message += ' version: {}\n ' . format ( info . version )
241
+ message += f ' version: { info . version } \n '
242
242
243
243
if info .url is not None :
244
- message += ' url: {}\n ' . format ( info . url )
244
+ message += f ' url: { info . url } \n '
245
245
246
246
if info .permissions :
247
247
message += ' permissions:\n '
248
248
for permission , description in info .permissions :
249
- message += ' {}:' . format ( permission ) .ljust (30 ) + description + '\n '
249
+ message += f ' { permission } :' .ljust (30 ) + description + '\n '
250
250
251
251
if isinstance (info .public_convar , PublicConVar ):
252
- message += ' public convar: {} \n ' . format ( info .public_convar .name )
252
+ message += f ' public convar: { info .public_convar .name } \n '
253
253
254
254
for attr in info .display_in_listing :
255
- message += ' {}:' . format ( attr ) .ljust (20 ) + str (getattr (info , attr )) + '\n '
255
+ message += f ' { attr } :' .ljust (20 ) + str (getattr (info , attr )) + '\n '
256
256
257
257
# Add 1 blank line between each plugin
258
258
message += '\n '
259
259
260
260
# Add the ending separator
261
- message += '= ' * 61
261
+ message += '- ' * 61
262
262
263
263
# Print the message
264
264
self .log_message (message )
0 commit comments