File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ def _stamp_version(filename: str) -> None:
4747 with open (filename ) as f :
4848 for line in f :
4949 if "__version__ =" in line :
50- line = line .replace ("\" git\" " , "'%s'" % VERSION )
50+ line = line .replace ("\" git\" " , f"' { VERSION } '" )
5151 found = True
5252 out .append (line )
5353 except OSError :
54- print ("Couldn't find file %s to stamp version" % filename , file = sys .stderr )
54+ print (f "Couldn't find file { filename } to stamp version" , file = sys .stderr )
5555
5656 if found :
5757 with open (filename , "w" ) as f :
5858 f .writelines (out )
5959 else :
60- print ("WARNING: Couldn't find version line in file %s" % filename , file = sys .stderr )
60+ print (f "WARNING: Couldn't find version line in file { filename } " , file = sys .stderr )
6161
6262
6363def build_py_modules (basedir : str , excludes : Sequence = ()) -> Sequence :
You can’t perform that action at this time.
0 commit comments