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-Commit-Position: refs/heads/master@{#685372}
Showing
Please register or sign in to comment