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(
119
119
return None , None
120
120
else :
121
121
if verbose :
122
- print ("unable to find command, tried {}" . format ( commands ) )
122
+ print (f "unable to find command, tried { commands } " )
123
123
return None , None
124
124
stdout = process .communicate ()[0 ].strip ().decode ()
125
125
if process .returncode != 0 :
@@ -381,7 +381,7 @@ def git_pieces_from_vcs(
381
381
if verbose :
382
382
fmt = "tag '%s' doesn't start with prefix '%s'"
383
383
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 (
385
385
full_tag ,
386
386
tag_prefix ,
387
387
)
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ def run_command(
502
502
return None , None
503
503
else :
504
504
if verbose :
505
- print ("unable to find command, tried {}" . format ( commands ) )
505
+ print (f "unable to find command, tried { commands } " )
506
506
return None , None
507
507
stdout = process .communicate ()[0 ].strip ().decode ()
508
508
if process .returncode != 0 :
@@ -1418,7 +1418,7 @@ def git_pieces_from_vcs(
1418
1418
if verbose :
1419
1419
fmt = "tag '%s' doesn't start with prefix '%s'"
1420
1420
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 (
1422
1422
full_tag ,
1423
1423
tag_prefix ,
1424
1424
)
@@ -1867,7 +1867,7 @@ def get_versions(verbose: bool = False) -> Dict[str, Any]:
1867
1867
try :
1868
1868
ver = versions_from_file (versionfile_abs )
1869
1869
if verbose :
1870
- print ("got version from file {} {}" . format ( versionfile_abs , ver ) )
1870
+ print (f "got version from file { versionfile_abs } { ver } " )
1871
1871
return ver
1872
1872
except NotThisMethod :
1873
1873
pass
You can’t perform that action at this time.
0 commit comments