Skip to content

Commit 4771053

Browse files
committed
Fix whitespace in version.py creation for __version_info__
This only triggers if there is a x.y.z version being used.
1 parent 27d72e4 commit 4771053

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/lsst/sconsUtils/builders.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,12 @@ def makeVersionModule(target, source, env):
577577
with open(target[0].abspath, "w") as outFile:
578578
outFile.write("# -------- This file is automatically generated by LSST's sconsUtils -------- #\n")
579579

580-
# Must first determine if __version_info__ is going to be
581-
# included so that we can know if Tuple needs to be imported.
582580
version_info = None
583581
try:
584582
info = tuple(int(v) for v in parts[0].split("."))
585583
what = "__version_info__"
586584
names.append(what)
587-
version_info = f"{what} : tuple[int, ...] = {info!r}\n"
585+
version_info = f"{what}: tuple[int, ...] = {info!r}\n"
588586
except ValueError:
589587
pass
590588

0 commit comments

Comments
 (0)