Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: trychange.py

Issue 6721029: Fix locale.getlocale() exception. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 """Client-side script to send a try job to the try server. It communicates to 6 """Client-side script to send a try job to the try server. It communicates to
7 the try server by either writting to a svn repository or by directly connecting 7 the try server by either writting to a svn repository or by directly connecting
8 to the server by HTTP. 8 to the server by HTTP.
9 """ 9 """
10 10
(...skipping 21 matching lines...) Expand all
32 try: 32 try:
33 import breakpad # pylint: disable=W0611 33 import breakpad # pylint: disable=W0611
34 except ImportError: 34 except ImportError:
35 pass 35 pass
36 36
37 try: 37 try:
38 import gcl 38 import gcl
39 except ImportError: 39 except ImportError:
40 gcl = None 40 gcl = None
41 41
42 import fix_encoding
42 import gclient_utils 43 import gclient_utils
43 import scm 44 import scm
44 45
45 __version__ = '1.2' 46 __version__ = '1.2'
46 47
47 48
48 # Constants 49 # Constants
49 HELP_STRING = "Sorry, Tryserver is not available." 50 HELP_STRING = "Sorry, Tryserver is not available."
50 USAGE = r"""%prog [options] 51 USAGE = r"""%prog [options]
51 52
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 return 1 763 return 1
763 print >> sys.stderr, e 764 print >> sys.stderr, e
764 return 1 765 return 1
765 except gclient_utils.Error, e: 766 except gclient_utils.Error, e:
766 print >> sys.stderr, e 767 print >> sys.stderr, e
767 return 1 768 return 1
768 return 0 769 return 0
769 770
770 771
771 if __name__ == "__main__": 772 if __name__ == "__main__":
773 fix_encoding.fix_encoding()
772 sys.exit(TryChange(None, [], False)) 774 sys.exit(TryChange(None, [], False))
OLDNEW
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698