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 | |
18 | 17 |
19 import annotated_gclient | 18 import annotated_gclient |
20 import auth | 19 import auth |
21 import checkout | 20 import checkout |
22 import fix_encoding | 21 import fix_encoding |
23 import gclient_utils | 22 import gclient_utils |
24 import rietveld | 23 import rietveld |
25 import scm | 24 import scm |
26 | 25 |
27 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | 26 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 return RETURN_CODE_OK | 316 return RETURN_CODE_OK |
318 | 317 |
319 | 318 |
320 if __name__ == "__main__": | 319 if __name__ == "__main__": |
321 fix_encoding.fix_encoding() | 320 fix_encoding.fix_encoding() |
322 try: | 321 try: |
323 sys.exit(main()) | 322 sys.exit(main()) |
324 except KeyboardInterrupt: | 323 except KeyboardInterrupt: |
325 sys.stderr.write('interrupted\n') | 324 sys.stderr.write('interrupted\n') |
326 sys.exit(RETURN_CODE_OTHER_FAILURE) | 325 sys.exit(RETURN_CODE_OTHER_FAILURE) |
OLD | NEW |