mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Merge branch 'google3' to roll forward cl/336363104.
This commit is contained in:
@@ -19,6 +19,7 @@ import argparse
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
|
||||
copy_header="""Copyright 2020 Google LLC
|
||||
@@ -201,6 +202,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)
|
||||
|
||||
Reference in New Issue
Block a user