mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Merge branch 'google3' to roll forward to cl/337147929.
This commit is contained in:
+3
-1
@@ -202,10 +202,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
|
||||
|
||||
Reference in New Issue
Block a user