Skip to content

Commit

Permalink
DDCore.python.dd4hepFactories: fix string replacement issue (not enou…
Browse files Browse the repository at this point in the history
…gh %s)

we can just concatenate the strings like this. or better use textwrap.dedent and multiline strings.
  • Loading branch information
andresailer committed Jul 17, 2023
1 parent 33014ff commit 0326fc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DDCore/python/dd4hepFactories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" % ("<CR> to DUMP the list of components \n",
"<Q> to QUIT \n",
"<D> to DUMP the list of components \n",
"<S> to SKIP this particular library\n",
"<L> to no longer LOAD libraries \n"))
ret = input("<CR> to DUMP the list of components \n"
"<Q> to QUIT \n"
"<D> to DUMP the list of components \n"
"<S> to SKIP this particular library\n"
"<L> to no longer LOAD libraries \n")
except Exception:
ret = 'D'
if not len(ret):
Expand Down

0 comments on commit 0326fc9

Please sign in to comment.