Use .format() instead

This commit is contained in:
Pedro Algarvio 2020-12-10 07:31:27 +00:00 committed by Megan Wilhite
parent df4f69c575
commit 75c29e7d51

View file

@ -264,12 +264,8 @@ next_release_dir = "" # path on web server for next release branch
today = ""
copyright = ""
if on_saltstack:
today = (
"Generated on "
+ time.strftime("%B %d, %Y")
+ " at "
+ time.strftime("%X %Z")
+ "."
today = "Generated on {} at {}.".format(
time.strftime("%B %d, %Y"), time.strftime("%X %Z")
)
copyright = time.strftime("%Y")