| 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 """Client-side script to send a try job to the try server. It communicates to | 5 """Client-side script to send a try job to the try server. It communicates to |
| 6 the try server by either writting to a svn repository or by directly connecting | 6 the try server by either writting to a svn repository or by directly connecting |
| 7 to the server by HTTP. | 7 to the server by HTTP. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import datetime | 10 import datetime |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 ', '.join(options.bot)) | 560 ', '.join(options.bot)) |
| 561 except (InvalidScript, NoTryServerAccess), e: | 561 except (InvalidScript, NoTryServerAccess), e: |
| 562 if swallow_exception: | 562 if swallow_exception: |
| 563 return 1 | 563 return 1 |
| 564 print e | 564 print e |
| 565 return 1 | 565 return 1 |
| 566 return 0 | 566 return 0 |
| 567 | 567 |
| 568 | 568 |
| 569 if __name__ == "__main__": | 569 if __name__ == "__main__": |
| 570 sys.exit(TryChange(None, None, False)) | 570 sys.exit(TryChange(None, [], False)) |
| OLD | NEW |