Skip to content

Commit 1a2f780

Browse files
committed
Changed a .format to f-string
1 parent ef79221 commit 1a2f780

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/lsst/sconsUtils/installation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ def Declare(self, products=None):
237237
self["ENV"]["EUPS_LOCK_PID"] = os.environ.get("EUPS_LOCK_PID", "-1")
238238
if "undeclare" in SCons.Script.COMMAND_LINE_TARGETS or self.GetOption("clean"):
239239
if version:
240-
command = "eups undeclare --flavor {} {} {}".format(
241-
self["eupsFlavor"], product, version
242-
)
240+
command = f"eups undeclare --flavor {self['eupsFlavor']} {product} {version}"
243241
if (
244242
"current" in SCons.Script.COMMAND_LINE_TARGETS
245243
and "declare" not in SCons.Script.COMMAND_LINE_TARGETS

0 commit comments

Comments
 (0)