commit | 01aa7745b0bab64ae22600f09fd6483c60f22ebf | [log] [tgz] |
---|---|---|
author | Christian Biesinger <cbiesinger@chromium.org> | Thu Aug 08 22:14:02 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 08 22:14:02 2019 |
tree | 99ead781ae06aa764023444e0961d678f3a17d44 | |
parent | 92bfa0a5dcee9dc01173e39e5bff226b09af0254 [diff] |
Use open() instead of the file constructor This is required to make this script work with Python 3, but even in Python 2 open is preferred over file(): https://docs.python.org/2/library/functions.html#file Bug: 941669 Change-Id: I4738fc9bad81464c9ca5c9c15a3c51e9ee3f945d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1745488 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#685372} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 52ceac9f3aaebc1f30324de7aed05890453aa1bf