Skip to content

Commit

Permalink
f string
Browse files Browse the repository at this point in the history
  • Loading branch information
onufer committed May 1, 2023
1 parent b40c9d0 commit 7309ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions armi/operators/settingsValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def run(self, cs=None):
strSkeleton = "{}_old".format(self.cs.path.split(".yaml")[0])
for num in itertools.count():
if num == 0:
renamePath = "{strSkeleton}.yaml"
renamePath = f"{strSkeleton}.yaml"
else:
renamePath = "{strSkeleton}{num}.yaml"
renamePath = f"{strSkeleton}{num}.yaml"
if not self._csRelativePathExists(renamePath):
break
# preserve old file before saving settings file
Expand Down

0 comments on commit 7309ef7

Please sign in to comment.