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>


[ROCm/rocprofiler-compute commit: 980fb08c92]
Αυτή η υποβολή περιλαμβάνεται σε:
Karl W. Schulz
2023-02-13 14:48:56 -06:00
γονέας 7e42bc9e8b
υποβολή 17f9ac7428
@@ -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