Use `format()`

This commit is contained in:
Rotzbua 2023-01-13 15:32:33 +01:00 committed by Florian Festi
parent 7fd97931fd
commit 9abefffc7a
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Boxes2rst:
for box in group.generators:
f.write(box.__class__.__name__)
f.write("\n..........................................\n\n")
f.write("\n\n.. autoclass:: %s.%s" % (
f.write("\n\n.. autoclass:: {}.{}".format(
box.__class__.__module__, box.__class__.__name__))
f.write("\n\n")
if os.path.exists("../../static/samples/"+ box.__class__.__name__+".jpg"):