Commit fda5c221 authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

Fix audit_non_blink_usage.py on Windows.

Pathnames are delimited with \ on Windows by default, while the script
only expects /

Change-Id: Ie15090dd45440dbb4eaad1e5feb48d18a0ed971f
Reviewed-on: https://chromium-review.googlesource.com/1225933Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591217}
parent 09d63713
......@@ -521,6 +521,8 @@ def check(path, contents):
A list of line number, disallowed identifier tuples.
"""
results = []
# Because Windows.
path = path.replace('\\', '/')
basename, ext = os.path.splitext(path)
# Only check code. Ignore tests.
# TODO(tkent): Remove 'Test' after the great mv.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment