File tree 1 file changed +3
-3
lines changed
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:
47
47
with open (filename ) as f :
48
48
for line in f :
49
49
if "__version__ =" in line :
50
- line = line .replace ("\" git\" " , "'%s'" % VERSION )
50
+ line = line .replace ("\" git\" " , f"' { VERSION } '" )
51
51
found = True
52
52
out .append (line )
53
53
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 )
55
55
56
56
if found :
57
57
with open (filename , "w" ) as f :
58
58
f .writelines (out )
59
59
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 )
61
61
62
62
63
63
def build_py_modules (basedir : str , excludes : Sequence = ()) -> Sequence :
You can’t perform that action at this time.
0 commit comments