Roll forward to cl/336363104

Signed-off-by: hai007 <hais@google.com>
This commit is contained in:
hai007
2020-10-09 14:14:41 -07:00
parent bcc3f21da2
commit 0738d06b0a
31 changed files with 728 additions and 254 deletions
+2
View File
@@ -19,6 +19,7 @@ import argparse
import os
import re
import shutil
import stat
import sys
copy_header="""Copyright 2020 Google LLC
@@ -200,6 +201,7 @@ def post_process_oss_files(path, args):
modified = True
if modified:
os.chmod(fname, os.stat(fname).st_mode | stat.S_IWRITE)
with open(fname, "w") as f:
for line in lines:
f.write(line)