Commit 5870ccf1 authored by Noel Gordon's avatar Noel Gordon Committed by Chromium LUCI CQ

[Build fix] ChromeOS file manager SWA main.html auto-generator

After CL:2515787, the SWA main.html auto-generator generates an error

  Did you mean print(line + '    ' + _SWA) ?

and stops a gn clean simple chrome flow ChromeOS build. Apply the fix
suggested to fix build error (works before and after CL:2515787).

Tbr: lucmult
Bug: 1113981
Change-Id: I454674756ab2bcf24c65d4ca1b815fc2e5b30201
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585261Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Auto-Submit: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836287}
parent d0b05b8d
......@@ -24,7 +24,7 @@ def GenerateSwaMainHtml(source, target):
for line in fileinput.input(target, inplace=True):
# Add _SWA <script> tag after the <head> tag.
if line.find('<head>') >= 0:
print line + ' ' + _SWA
print(line + ' ' + _SWA)
# Add <meta> charset="utf-8" attribute.
elif line.find('<meta ') >= 0:
sys.stdout.write(line.replace('<meta ', '<meta charset="utf-8" '))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment