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]
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -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
|
||||
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user