| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 """\ | 6 """\ |
| 7 Wrapper script around Rietveld's upload.py that simplifies working with groups | 7 Wrapper script around Rietveld's upload.py that simplifies working with groups |
| 8 of files. | 8 of files. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 import json | 28 import json |
| 29 # Some versions of python2.5 have an incomplete json module. Check to make | 29 # Some versions of python2.5 have an incomplete json module. Check to make |
| 30 # sure loads exists. | 30 # sure loads exists. |
| 31 # pylint: disable=W0104 | 31 # pylint: disable=W0104 |
| 32 json.loads | 32 json.loads |
| 33 except (ImportError, AttributeError): | 33 except (ImportError, AttributeError): |
| 34 # Import the one included in depot_tools. | 34 # Import the one included in depot_tools. |
| 35 sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party')) | 35 sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party')) |
| 36 import simplejson as json | 36 import simplejson as json |
| 37 | 37 |
| 38 import breakpad | 38 import breakpad # pylint: disable=W0611 |
| 39 | 39 |
| 40 # gcl now depends on gclient. | 40 # gcl now depends on gclient. |
| 41 from scm import SVN | 41 from scm import SVN |
| 42 import gclient_utils | 42 import gclient_utils |
| 43 | 43 |
| 44 __version__ = '1.2' | 44 __version__ = '1.2' |
| 45 | 45 |
| 46 | 46 |
| 47 CODEREVIEW_SETTINGS = { | 47 CODEREVIEW_SETTINGS = { |
| 48 # To make gcl send reviews to a server, check in a file named | 48 # To make gcl send reviews to a server, check in a file named |
| (...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 if e.code != 500: | 1377 if e.code != 500: |
| 1378 raise | 1378 raise |
| 1379 print >> sys.stderr, ( | 1379 print >> sys.stderr, ( |
| 1380 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' | 1380 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' |
| 1381 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) | 1381 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) |
| 1382 return 1 | 1382 return 1 |
| 1383 | 1383 |
| 1384 | 1384 |
| 1385 if __name__ == "__main__": | 1385 if __name__ == "__main__": |
| 1386 sys.exit(main(sys.argv[1:])) | 1386 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |