Chromium Code Reviews| Index: googletest/README.py |
| diff --git a/googletest/README.py b/googletest/README.py |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..0f5b30c49233f1585fb01d889e1551f51c009dd9 |
| --- /dev/null |
| +++ b/googletest/README.py |
| @@ -0,0 +1,35 @@ |
| +#!/usr/bin/env python |
| +# coding=utf-8 |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +### |
| +# Run me to generate the documentation! |
| +### |
| + |
| +# 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.
|
| +# pylint: disable=C0301 |
| + |
| +"""Google Test specific tracing and isolation infrastructure. |
| + |
| +You will find more general information in the directory above. |
| +""" |
| + |
| +import os |
| +import sys |
| + |
| + |
| +def main(): |
| + for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))): |
| + if not i.endswith('.py') or i == 'PRESUBMIT.py': |
| + continue |
| + module = __import__(i[:-3]) |
| + if hasattr(module, '__doc__'): |
| + print module.__name__ |
| + print ''.join(' %s\n' % i for i in module.__doc__.splitlines()) |
| + return 0 |
| + |
| + |
| +if __name__ == '__main__': |
| + sys.exit(main()) |