Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Side by Side Diff: components/cronet/tools/generate_javadoc.py

Issue 1945023004: [Cronet] run pylint in Cronet presubmit check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/cronet/tools/extract_from_jars.py ('k') | components/cronet/tools/jar_src.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import fnmatch
8 import optparse 7 import optparse
9 import os 8 import os
10 import sys 9 import sys
11 10
12 REPOSITORY_ROOT = os.path.abspath(os.path.join( 11 REPOSITORY_ROOT = os.path.abspath(os.path.join(
13 os.path.dirname(__file__), '..', '..', '..')) 12 os.path.dirname(__file__), '..', '..', '..'))
14 13
15 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build/android/gyp/util')) 14 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build/android/gyp/util'))
16 sys.path.append(os.path.join(REPOSITORY_ROOT, 'net/tools/net_docs')) 15 sys.path.append(os.path.join(REPOSITORY_ROOT, 'net/tools/net_docs'))
17 import build_utils 16 import build_utils
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 65
67 if options.depfile: 66 if options.depfile:
68 input_paths = [] 67 input_paths = []
69 for root, _, filenames in os.walk(options.input_dir): 68 for root, _, filenames in os.walk(options.input_dir):
70 input_paths.extend(os.path.join(root, f) for f in filenames) 69 input_paths.extend(os.path.join(root, f) for f in filenames)
71 build_utils.WriteDepfile(options.depfile, 70 build_utils.WriteDepfile(options.depfile,
72 input_paths + build_utils.GetPythonDependencies()) 71 input_paths + build_utils.GetPythonDependencies())
73 72
74 if __name__ == '__main__': 73 if __name__ == '__main__':
75 sys.exit(main()) 74 sys.exit(main())
OLDNEW
« no previous file with comments | « components/cronet/tools/extract_from_jars.py ('k') | components/cronet/tools/jar_src.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698