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

Side by Side Diff: tools/licenses.py

Issue 1286003: Pass tools/licenses.py for a few more directories. (Closed)
Patch Set: Created 10 years, 9 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 | « third_party/pyftpdlib/README.chromium ('k') | no next file » | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ 6 """
7 Utilities for checking and processing licensing information in third_party 7 Utilities for checking and processing licensing information in third_party
8 directories. 8 directories.
9 """ 9 """
10 10
(...skipping 21 matching lines...) Expand all
32 'out', 'Debug', 'Release', # build files 32 'out', 'Debug', 'Release', # build files
33 'layout_tests') # lots of subdirs 33 'layout_tests') # lots of subdirs
34 34
35 # Directories where we check out directly from upstream, and therefore 35 # Directories where we check out directly from upstream, and therefore
36 # can't provide a README.chromium. Please prefer a README.chromium 36 # can't provide a README.chromium. Please prefer a README.chromium
37 # wherever possible. 37 # wherever possible.
38 SPECIAL_CASES = { 38 SPECIAL_CASES = {
39 'third_party/ots': { 39 'third_party/ots': {
40 "Name": "OTS (OpenType Sanitizer)", 40 "Name": "OTS (OpenType Sanitizer)",
41 "URL": "http://code.google.com/p/ots/", 41 "URL": "http://code.google.com/p/ots/",
42 } 42 },
43 'third_party/pywebsocket': {
44 "Name": "pywebsocket",
45 "URL": "http://code.google.com/p/pywebsocket/",
46 },
43 } 47 }
44 48
45 class LicenseError(Exception): 49 class LicenseError(Exception):
46 """We raise this exception when a directory's licensing info isn't 50 """We raise this exception when a directory's licensing info isn't
47 fully filled out.""" 51 fully filled out."""
48 pass 52 pass
49 53
50 54
51 def ParseDir(path): 55 def ParseDir(path):
52 """Examine a third_party/foo component and extract its metadata.""" 56 """Examine a third_party/foo component and extract its metadata."""
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 # Don't recurse into any subdirs from here. 149 # Don't recurse into any subdirs from here.
146 dirs[:] = [] 150 dirs[:] = []
147 continue 151 continue
148 152
149 return third_party_dirs 153 return third_party_dirs
150 154
151 155
152 if __name__ == '__main__': 156 if __name__ == '__main__':
153 third_party_dirs = FindThirdPartyDirs() 157 third_party_dirs = FindThirdPartyDirs()
154 ScanThirdPartyDirs(third_party_dirs) 158 ScanThirdPartyDirs(third_party_dirs)
OLDNEW
« no previous file with comments | « third_party/pyftpdlib/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698