Skip to content

Commit d2b8d36

Browse files
authored
Use f-string for version string formatting
1 parent ffa54cc commit d2b8d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def create_swig_wrapper(self):
3636
def create_version_module(self):
3737
with open(os.path.join(PACKAGE_DIR, "_version.py"), "w") as f:
3838
f.write("# This file was auto generated by `setup.py`, changes might be lost.\n")
39-
f.write("__version__ = \"{UTM_VERSION}\"\n")
39+
f.write(f"__version__ = \"{UTM_VERSION}\"\n")
4040

4141
def run(self):
4242
self.create_swig_wrapper()

0 commit comments

Comments
 (0)