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 """Applies an issue from Rietveld. | 6 """Applies an issue from Rietveld. |
7 """ | 7 """ |
8 import getpass | 8 import getpass |
9 import json | 9 import json |
10 import logging | 10 import logging |
11 import optparse | 11 import optparse |
12 import os | 12 import os |
13 import subprocess | 13 import subprocess |
14 import sys | 14 import sys |
15 import urllib2 | 15 import urllib2 |
16 | 16 |
| 17 import breakpad # pylint: disable=W0611 |
17 | 18 |
18 import annotated_gclient | 19 import annotated_gclient |
19 import auth | 20 import auth |
20 import checkout | 21 import checkout |
21 import fix_encoding | 22 import fix_encoding |
22 import gclient_utils | 23 import gclient_utils |
23 import rietveld | 24 import rietveld |
24 import scm | 25 import scm |
25 | 26 |
26 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | 27 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 return RETURN_CODE_OK | 317 return RETURN_CODE_OK |
317 | 318 |
318 | 319 |
319 if __name__ == "__main__": | 320 if __name__ == "__main__": |
320 fix_encoding.fix_encoding() | 321 fix_encoding.fix_encoding() |
321 try: | 322 try: |
322 sys.exit(main()) | 323 sys.exit(main()) |
323 except KeyboardInterrupt: | 324 except KeyboardInterrupt: |
324 sys.stderr.write('interrupted\n') | 325 sys.stderr.write('interrupted\n') |
325 sys.exit(RETURN_CODE_OTHER_FAILURE) | 326 sys.exit(RETURN_CODE_OTHER_FAILURE) |
OLD | NEW |