Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wpt: Update some security-features scripts to run under Python 3.
In Python 3, dict.keys() returns an object which doesn't have a remove() method. Instead, this is converted to a list so that this kind of manipulation is possible. basestring no longer exists in Python 3, so str is used instead. Technically basestring also includes bytes, but as far as I can tell it's not reasonable for bytes to end up here. Finally, message is not guaranteed to exist, so the error object itself is printed instead. Change-Id: Iad38779f8cfcfe1f464b73e8cbabef923d90f6ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5090427 Reviewed-by: Hiroshige Hayashizaki <[email protected]> Commit-Queue: Jeremy Roman <[email protected]> Cr-Commit-Position: refs/heads/main@{#1234071}
- Loading branch information