Commit c04c33d7 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Move audit-non-blink-usage.py from //third_party/WebKit to //third_party/blink

Also,
* Rename it to audit_non_blink_usage.py
* Add //third_party/blink/tools to remove_stale_pyc_file.py target.

Bug: 829697
Change-Id: I6848a5e64b599ce75fa0cea878fe7b17f432417c
Reviewed-on: https://chromium-review.googlesource.com/1005644
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550104}
parent 50aa98f7
...@@ -1273,6 +1273,7 @@ hooks = [ ...@@ -1273,6 +1273,7 @@ hooks = [
'src/infra', 'src/infra',
'src/ppapi', 'src/ppapi',
'src/printing', 'src/printing',
'src/third_party/blink/tools', # See http://crbug.com/625877.
'src/third_party/catapult', 'src/third_party/catapult',
'src/third_party/closure_compiler/build', 'src/third_party/closure_compiler/build',
'src/third_party/WebKit/Tools/Scripts', # See http://crbug.com/625877. 'src/third_party/WebKit/Tools/Scripts', # See http://crbug.com/625877.
......
per-file audit-non-blink-usage.py=dcheng@chromium.org
per-file audit-non-blink-usage.py=haraken@chromium.org
per-file audit-non-blink-usage.py=jbroman@chromium.org
...@@ -16,7 +16,7 @@ try: ...@@ -16,7 +16,7 @@ try:
# pylint: disable=C0103 # pylint: disable=C0103
audit_non_blink_usage = imp.load_source( audit_non_blink_usage = imp.load_source(
'audit_non_blink_usage', 'audit_non_blink_usage',
os.path.join(os.path.dirname(inspect.stack()[0][1]), '..', 'WebKit/Tools/Scripts/audit-non-blink-usage.py')) os.path.join(os.path.dirname(inspect.stack()[0][1]), 'tools/audit_non_blink_usage.py'))
except IOError: except IOError:
# One of the presubmit upload tests tries to exec this script, which doesn't interact so well # One of the presubmit upload tests tries to exec this script, which doesn't interact so well
# with the import hack... just ignore the exception here and hope for the best. # with the import hack... just ignore the exception here and hope for the best.
......
file://third_party/WebKit/Tools/OWNERS file://third_party/WebKit/Tools/OWNERS
per-file audit_non_blink_usage.py=dcheng@chromium.org
per-file audit_non_blink_usage.py=haraken@chromium.org
per-file audit_non_blink_usage.py=jbroman@chromium.org
...@@ -12,7 +12,7 @@ script can be run in standalone mode to check for existing violations. ...@@ -12,7 +12,7 @@ script can be run in standalone mode to check for existing violations.
Example command: Example command:
$ git ls-files third_party/blink \ $ git ls-files third_party/blink \
| python third_party/WebKit/Tools/Scripts/audit-non-blink-usage.py | python third_party/blink/tools/audit_non_blink_usage.py
""" """
import os import os
......
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