File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def run_command(
119119 return None , None
120120 else :
121121 if verbose :
122- print ("unable to find command, tried {}" . format ( commands ) )
122+ print (f "unable to find command, tried { commands } " )
123123 return None , None
124124 stdout = process .communicate ()[0 ].strip ().decode ()
125125 if process .returncode != 0 :
@@ -381,7 +381,7 @@ def git_pieces_from_vcs(
381381 if verbose :
382382 fmt = "tag '%s' doesn't start with prefix '%s'"
383383 print (fmt % (full_tag , tag_prefix ))
384- pieces ["error" ] = "tag '%s ' doesn't start with prefix '%s'" % (
384+ pieces ["error" ] = "tag '{} ' doesn't start with prefix '{}'" . format (
385385 full_tag ,
386386 tag_prefix ,
387387 )
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ def run_command(
502502 return None , None
503503 else :
504504 if verbose :
505- print ("unable to find command, tried {}" . format ( commands ) )
505+ print (f "unable to find command, tried { commands } " )
506506 return None , None
507507 stdout = process .communicate ()[0 ].strip ().decode ()
508508 if process .returncode != 0 :
@@ -1418,7 +1418,7 @@ def git_pieces_from_vcs(
14181418 if verbose :
14191419 fmt = "tag '%s' doesn't start with prefix '%s'"
14201420 print (fmt % (full_tag , tag_prefix ))
1421- pieces ["error" ] = "tag '%s ' doesn't start with prefix '%s'" % (
1421+ pieces ["error" ] = "tag '{} ' doesn't start with prefix '{}'" . format (
14221422 full_tag ,
14231423 tag_prefix ,
14241424 )
@@ -1867,7 +1867,7 @@ def get_versions(verbose: bool = False) -> Dict[str, Any]:
18671867 try :
18681868 ver = versions_from_file (versionfile_abs )
18691869 if verbose :
1870- print ("got version from file {} {}" . format ( versionfile_abs , ver ) )
1870+ print (f "got version from file { versionfile_abs } { ver } " )
18711871 return ver
18721872 except NotThisMethod :
18731873 pass
You can’t perform that action at this time.
0 commit comments