Skip to content

Commit eb8ef50

Browse files
committed
1 more string improvement
1 parent 1332f4b commit eb8ef50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AutoDuck/makedfromi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def make_doc_summary(inFile, outFile):
8484
else:
8585
extra_tags.append("// " + doc + "\n")
8686
except Exception as msg:
87-
print("Line %d is badly formed - %s" % (lineNo, msg))
87+
print(f"Line {lineNo} is badly formed - {msg}")
8888

8989
lineNo += 1
9090

@@ -151,7 +151,7 @@ def doit():
151151
msg = " ".join(args)
152152
except getopt.error as msg:
153153
print(msg)
154-
print("Usage: %s [-o output_name] [-p com_parent] filename" % sys.argv[0])
154+
print(f"Usage: {sys.argv[0]} [-o output_name] [-p com_parent] filename")
155155
return
156156

157157
inName = args[0]

0 commit comments

Comments
 (0)