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 """Enables directory-specific presubmit checks to run at upload and/or commit. | 6 """Enables directory-specific presubmit checks to run at upload and/or commit. |
7 """ | 7 """ |
8 | 8 |
9 __version__ = '1.8.0' | 9 __version__ = '1.8.0' |
10 | 10 |
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 print >> sys.stderr, 'If all fails, contact maruel@' | 1822 print >> sys.stderr, 'If all fails, contact maruel@' |
1823 return 2 | 1823 return 2 |
1824 | 1824 |
1825 | 1825 |
1826 if __name__ == '__main__': | 1826 if __name__ == '__main__': |
1827 fix_encoding.fix_encoding() | 1827 fix_encoding.fix_encoding() |
1828 try: | 1828 try: |
1829 sys.exit(main()) | 1829 sys.exit(main()) |
1830 except KeyboardInterrupt: | 1830 except KeyboardInterrupt: |
1831 sys.stderr.write('interrupted\n') | 1831 sys.stderr.write('interrupted\n') |
1832 sys.exit(1) | 1832 sys.exit(2) |
OLD | NEW |