Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # coding=utf-8 | |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 ### | |
| 8 # Run me to generate the documentation! | |
| 9 ### | |
| 10 | |
| 11 # Line too long (NN/80) | |
|
csharp
2013/07/24 20:21:16
I don't think you need this, right?
M-A Ruel
2013/07/24 20:29:58
Right, removed.
| |
| 12 # pylint: disable=C0301 | |
| 13 | |
| 14 """Google Test specific tracing and isolation infrastructure. | |
| 15 | |
| 16 You will find more general information in the directory above. | |
| 17 """ | |
| 18 | |
| 19 import os | |
| 20 import sys | |
| 21 | |
| 22 | |
| 23 def main(): | |
| 24 for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))): | |
| 25 if not i.endswith('.py') or i == 'PRESUBMIT.py': | |
| 26 continue | |
| 27 module = __import__(i[:-3]) | |
| 28 if hasattr(module, '__doc__'): | |
| 29 print module.__name__ | |
| 30 print ''.join(' %s\n' % i for i in module.__doc__.splitlines()) | |
| 31 return 0 | |
| 32 | |
| 33 | |
| 34 if __name__ == '__main__': | |
| 35 sys.exit(main()) | |
| OLD | NEW |