Roll forward to cl/337147929.

This commit is contained in:
hai007
2020-10-14 12:55:18 -07:00
parent 0738d06b0a
commit 26edf9c30e
12 changed files with 152 additions and 99 deletions
+3 -1
View File
@@ -201,10 +201,12 @@ def post_process_oss_files(path, args):
modified = True
if modified:
os.chmod(fname, os.stat(fname).st_mode | stat.S_IWRITE)
old_mode = os.stat(fname).st_mode
os.chmod(fname, old_mode | stat.S_IWRITE)
with open(fname, "w") as f:
for line in lines:
f.write(line)
os.chmod(fname, old_mode)
modified_total += 1
if args.no_recurse:
break