Chromium Code Reviews| Index: tools/metrics/actions/extract_actions.py |
| diff --git a/tools/metrics/actions/extract_actions.py b/tools/metrics/actions/extract_actions.py |
| index 63818f331165614dd04354261943a16ccd6b93bd..5d33d34d244f1f4c80a80d9dc7469a5d632c3594 100755 |
| --- a/tools/metrics/actions/extract_actions.py |
| +++ b/tools/metrics/actions/extract_actions.py |
| @@ -506,7 +506,7 @@ def WalkDirectory(root_path, actions, extensions, callback): |
| dirs.remove('.git') |
| for file in files: |
| ext = os.path.splitext(file)[1] |
| - if ext in extensions: |
| + if ext and ext in extensions: |
| callback(os.path.join(path, file), actions) |
| def AddLiteralActions(actions): |
| @@ -763,7 +763,6 @@ def PrettyPrint(actions, actions_dict, comment_nodes=[]): |
| return print_style.GetPrintStyle().PrettyPrintNode(doc) |
| - |
|
Alexei Svitkine (slow)
2014/11/11 20:36:41
Nit: Revert changes to this file.
gayane -on leave until 09-2017
2014/11/12 22:00:23
I agree I should restore this line, but the other
|
| def main(argv): |
| presubmit = ('--presubmit' in argv) |
| actions_xml_path = os.path.join(path_utils.ScriptDir(), 'actions.xml') |