From bef48837e79712868c096ef4f4692dbf1746b6d1 Mon Sep 17 00:00:00 2001 From: David Gilbertson Date: Tue, 4 Jan 2022 20:25:56 +1100 Subject: Update old-style strings to f-strings (GH-30384) Let me know if this sort of change is unwanted... --- Doc/includes/minidom-example.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/includes/minidom-example.py b/Doc/includes/minidom-example.py index 5ee7682..3b9e9ee 100644 --- a/Doc/includes/minidom-example.py +++ b/Doc/includes/minidom-example.py @@ -42,10 +42,10 @@ def handleSlide(slide): handlePoints(slide.getElementsByTagName("point")) def handleSlideshowTitle(title): - print("%s" % getText(title.childNodes)) + print(f"{getText(title.childNodes)}") def handleSlideTitle(title): - print("

%s

" % getText(title.childNodes)) + print(f"

{getText(title.childNodes)}

") def handlePoints(points): print("") def handlePoint(point): - print("
  • %s
  • " % getText(point.childNodes)) + print(f"
  • {getText(point.childNodes)}
  • ") def handleToc(slides): for slide in slides: title = slide.getElementsByTagName("title")[0] - print("

    %s

    " % getText(title.childNodes)) + print(f"

    {getText(title.childNodes)}

    ") handleSlideshow(dom) -- cgit v0.12