Update license header tool to not include a space after comment if rest of line

is blank.  Needed to make python formatting check happy.

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
Este cometimento está contido em:
Karl W. Schulz cometeu 2023-02-13 14:48:56 -06:00
1 ascendente 7066231128
cometimento 980fb08c92
1 ficheiro modificado
+4 -1
+4 -1
Ver ficheiro
@@ -25,7 +25,10 @@ def cacheLicenseFile(infile, comment="#"):
license = ""
with open(infile, "r") as file_in:
for line in file_in:
license += comment + " " + line
license += comment
if line.strip() != "":
license += " "
license += line
return license