OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 # pylint: disable=W0212,W0223,W0231,W0613 | 6 # pylint: disable=W0212,W0223,W0231,W0613 |
7 | 7 |
8 import base64 | 8 import base64 |
9 import collections | 9 import collections |
10 import hashlib | 10 import hashlib |
11 import json | 11 import json |
12 import logging | 12 import logging |
13 import os | 13 import os |
14 import StringIO | 14 import StringIO |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 | 1081 |
1082 | 1082 |
1083 if __name__ == '__main__': | 1083 if __name__ == '__main__': |
1084 fix_encoding.fix_encoding() | 1084 fix_encoding.fix_encoding() |
1085 if '-v' in sys.argv: | 1085 if '-v' in sys.argv: |
1086 unittest.TestCase.maxDiff = None | 1086 unittest.TestCase.maxDiff = None |
1087 logging.basicConfig( | 1087 logging.basicConfig( |
1088 level=(logging.DEBUG if '-v' in sys.argv else logging.CRITICAL)) | 1088 level=(logging.DEBUG if '-v' in sys.argv else logging.CRITICAL)) |
1089 clear_env_vars() | 1089 clear_env_vars() |
1090 unittest.main() | 1090 unittest.main() |
OLD | NEW |