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

Side by Side Diff: third_party/upload.py

Issue 733923003: Ignore any import error for upload.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 # 3 #
4 # Copyright 2007 Google Inc. 4 # Copyright 2007 Google Inc.
5 # 5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License. 7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at 8 # You may obtain a copy of the License at
9 # 9 #
10 # http://www.apache.org/licenses/LICENSE-2.0 10 # http://www.apache.org/licenses/LICENSE-2.0
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 except ImportError: 62 except ImportError:
63 from md5 import md5 63 from md5 import md5
64 64
65 try: 65 try:
66 import readline 66 import readline
67 except ImportError: 67 except ImportError:
68 pass 68 pass
69 69
70 try: 70 try:
71 import keyring 71 import keyring
72 except ImportError: 72 except:
73 keyring = None 73 keyring = None
74 74
75 # The logging verbosity: 75 # The logging verbosity:
76 # 0: Errors only. 76 # 0: Errors only.
77 # 1: Status messages. 77 # 1: Status messages.
78 # 2: Info logs. 78 # 2: Info logs.
79 # 3: Debug logs. 79 # 3: Debug logs.
80 verbosity = 1 80 verbosity = 1
81 LOGGER = logging.getLogger('upload') 81 LOGGER = logging.getLogger('upload')
82 82
(...skipping 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after
2705 os.environ['LC_ALL'] = 'C' 2705 os.environ['LC_ALL'] = 'C'
2706 RealMain(sys.argv) 2706 RealMain(sys.argv)
2707 except KeyboardInterrupt: 2707 except KeyboardInterrupt:
2708 print 2708 print
2709 StatusUpdate("Interrupted.") 2709 StatusUpdate("Interrupted.")
2710 sys.exit(1) 2710 sys.exit(1)
2711 2711
2712 2712
2713 if __name__ == "__main__": 2713 if __name__ == "__main__":
2714 main() 2714 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698