@@ -295,7 +295,7 @@ def _insert_changelog_entry(self, message):
295295 if index == 0 :
296296 line = f"{ prefix } { line } "
297297 else :
298- line = "{} {}" . format ( " " * len (prefix ), line )
298+ line = f" { ' ' * len (prefix )} { line } "
299299 lines .append (line )
300300 lines .append ("" )
301301 self .data ["history_lines" ][insert :insert ] = lines
@@ -315,8 +315,8 @@ def _check_nothing_changed(self):
315315 # printing text with a u'unicode marker' in front...
316316 pretty_nothing_changed = f'"{ nothing_yet } "'
317317 if not utils .ask (
318- "WARNING: Changelog contains {}. Are you sure you "
319- "want to release?" . format ( pretty_nothing_changed ) ,
318+ f "WARNING: Changelog contains { pretty_nothing_changed } . "
319+ "Are you sure you want to release?" ,
320320 default = False ,
321321 ):
322322 logger .info (
@@ -343,11 +343,11 @@ def _check_required(self):
343343 if text in history_last_release :
344344 # Found it, all is fine.
345345 return
346- pretty_required = '"{}"' . format ( '" , "' .join (required ) )
346+ pretty_required = '", "' .join (required )
347347 if not utils .ask (
348348 "WARNING: Changelog should contain at least one of "
349- " these required strings: {}. Are you sure you "
350- "want to release?" . format ( pretty_required ) ,
349+ f' these required strings: " { pretty_required } ". '
350+ "Are you sure you want to release?" ,
351351 default = False ,
352352 ):
353353 sys .exit (1 )
0 commit comments