mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix pylint error (flutter/engine#39934)
This commit is contained in:
parent
97d8b0a936
commit
a623c8ee4f
@ -68,17 +68,15 @@ def main():
|
||||
|
||||
|
||||
def embed_codesign_configuration(config_path, contents):
|
||||
with open(config_path, 'w') as f:
|
||||
f.write('\n'.join(contents) + '\n')
|
||||
with open(config_path, 'w') as file:
|
||||
file.write('\n'.join(contents) + '\n')
|
||||
|
||||
|
||||
def zip_archive(dst):
|
||||
snapshot_filepath_with_entitlements = [
|
||||
'gen_snapshot_arm64', 'gen_snapshot_x64'
|
||||
]
|
||||
snapshot_filepath = ['gen_snapshot_arm64', 'gen_snapshot_x64']
|
||||
|
||||
embed_codesign_configuration(
|
||||
os.path.join(dst, 'entitlements.txt'), snapshot_filepath_with_entitlements
|
||||
os.path.join(dst, 'entitlements.txt'), snapshot_filepath
|
||||
)
|
||||
|
||||
subprocess.check_call([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user