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

Side by Side Diff: native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py

Issue 16022005: [NaCl SDK] Add keyboard interrupt handlers for python scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
OLDNEW
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 # CMD code copied from git_cl.py in depot_tools. 6 # CMD code copied from git_cl.py in depot_tools.
7 7
8 import config 8 import config
9 import cStringIO 9 import cStringIO
10 import download 10 import download
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 GenUsage(parser, 'help') 418 GenUsage(parser, 'help')
419 return CMDhelp(parser, argv) 419 return CMDhelp(parser, argv)
420 420
421 421
422 if __name__ == '__main__': 422 if __name__ == '__main__':
423 try: 423 try:
424 sys.exit(main(sys.argv[1:])) 424 sys.exit(main(sys.argv[1:]))
425 except Error as e: 425 except Error as e:
426 logging.error(str(e)) 426 logging.error(str(e))
427 sys.exit(1) 427 sys.exit(1)
428 except KeyboardInterrupt:
429 sys.stderr.write('naclsdk: interrupted\n')
430 sys.exit(1)
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_tools/sdk_update.py ('k') | native_client_sdk/src/build_tools/test_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698