| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 import hashlib | 6 import hashlib |
| 7 import json | 7 import json |
| 8 import logging | 8 import logging |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 parser.add_option('-v', action='count', default=0) | 362 parser.add_option('-v', action='count', default=0) |
| 363 (opts, _) = parser.parse_args([x for x in argv if x.startswith('-v')]) | 363 (opts, _) = parser.parse_args([x for x in argv if x.startswith('-v')]) |
| 364 | 364 |
| 365 levels = [logging.WARNING, logging.INFO, logging.DEBUG] | 365 levels = [logging.WARNING, logging.INFO, logging.DEBUG] |
| 366 logging.basicConfig(level=levels[min(2, opts.v)]) | 366 logging.basicConfig(level=levels[min(2, opts.v)]) |
| 367 | 367 |
| 368 | 368 |
| 369 if __name__ == '__main__': | 369 if __name__ == '__main__': |
| 370 _init_logging(sys.argv) | 370 _init_logging(sys.argv) |
| 371 unittest.main() | 371 unittest.main() |
| OLD | NEW |