mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
ruff UP031 in files: use format specifiers instead of percent format
This commit is contained in:
parent
3e81af966a
commit
30bde3823f
12 changed files with 47 additions and 50 deletions
|
|
@ -220,7 +220,7 @@ needed by Pelican.
|
|||
CONF["basedir"] = open(project).read().rstrip("\n")
|
||||
print(
|
||||
"Using project associated with current virtual environment. "
|
||||
"Will save to:\n%s\n" % CONF["basedir"]
|
||||
"Will save to:\n{}\n".format(CONF["basedir"])
|
||||
)
|
||||
else:
|
||||
CONF["basedir"] = os.path.abspath(
|
||||
|
|
@ -394,7 +394,7 @@ needed by Pelican.
|
|||
render_jinja_template("tasks.py.jinja2", CONF, "tasks.py")
|
||||
render_jinja_template("Makefile.jinja2", CONF, "Makefile")
|
||||
|
||||
print("Done. Your new project is available at %s" % CONF["basedir"])
|
||||
print("Done. Your new project is available at {}".format(CONF["basedir"]))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue