From a623c8ee4f4680a5f371972d6e63b0fa53c0d1bb Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Mon, 27 Feb 2023 17:23:17 -0800 Subject: [PATCH] Fix pylint error (flutter/engine#39934) --- .../flutter/sky/tools/create_macos_gen_snapshots.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py index f586ce456ca..1462f1b2ec4 100755 --- a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py +++ b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py @@ -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([