From 0326fc998c5a342cff2b001080030cf6318d34e9 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Mon, 17 Jul 2023 18:12:27 +0200 Subject: [PATCH] DDCore.python.dd4hepFactories: fix string replacement issue (not enough %s) we can just concatenate the strings like this. or better use textwrap.dedent and multiline strings. --- DDCore/python/dd4hepFactories.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DDCore/python/dd4hepFactories.py b/DDCore/python/dd4hepFactories.py index 13959f5ce..073b4fe3e 100755 --- a/DDCore/python/dd4hepFactories.py +++ b/DDCore/python/dd4hepFactories.py @@ -103,11 +103,11 @@ def dumpInventory(self, summary_only=False, dump=True, load=False, interactive=T ret = 'D' if interactive: try: - ret = input("%s%s%s%s" % (" to DUMP the list of components \n", - " to QUIT \n", - " to DUMP the list of components \n", - " to SKIP this particular library\n", - " to no longer LOAD libraries \n")) + ret = input(" to DUMP the list of components \n" + " to QUIT \n" + " to DUMP the list of components \n" + " to SKIP this particular library\n" + " to no longer LOAD libraries \n") except Exception: ret = 'D' if not len(ret):