| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 """Top-level presubmit script for Chromium. | 6 """Top-level presubmit script for Chromium. |
| 7 | 7 |
| 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 9 for more details on the presubmit API built into gcl. | 9 for more details on the presubmit API built into gcl. |
| 10 """ | 10 """ |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 connection = input_api.urllib2.urlopen(url_text) | 136 connection = input_api.urllib2.urlopen(url_text) |
| 137 long_text = connection.read().strip() | 137 long_text = connection.read().strip() |
| 138 connection.close() | 138 connection.close() |
| 139 except IOError: | 139 except IOError: |
| 140 pass | 140 pass |
| 141 return [output_api.PresubmitError("The tree is closed.", | 141 return [output_api.PresubmitError("The tree is closed.", |
| 142 long_text=long_text)] | 142 long_text=long_text)] |
| 143 except IOError: | 143 except IOError: |
| 144 pass | 144 pass |
| 145 return [] | 145 return [] |
| 146 |
| 147 |
| 148 def GetPreferredTrySlaves(): |
| 149 return ['win', 'linux', 'mac'] |
| OLD | NEW |