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

Side by Side Diff: tools/code_coverage/croc_scan.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python2.4
2 #
3 # Copyright 2009, Google Inc. 1 # Copyright 2009, Google Inc.
4 # All rights reserved. 2 # All rights reserved.
5 # 3 #
6 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
8 # met: 6 # met:
9 # 7 #
10 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
12 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 language. 180 language.
183 """ 181 """
184 182
185 if language == 'python': 183 if language == 'python':
186 return PythonScanner().Scan(filename) 184 return PythonScanner().Scan(filename)
187 elif language in ['C', 'C++', 'ObjC', 'ObjC++']: 185 elif language in ['C', 'C++', 'ObjC', 'ObjC++']:
188 return CppScanner().Scan(filename) 186 return CppScanner().Scan(filename)
189 187
190 # Something we don't handle 188 # Something we don't handle
191 return [] 189 return []
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698