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

Side by Side Diff: chrome-update.py

Issue 6791018: Add a warning if the current version of python is not 2.5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Updated to work seamlessly with python 2.5 Created 9 years, 8 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
« no previous file with comments | « PRESUBMIT.py ('k') | drover.py » ('j') | 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/python 1 #!/usr/bin/env python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 import os 6 import os
7 import re 7 import re
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 import urllib 10 import urllib
11 11
12 IS_WIN = sys.platform.startswith('win') 12 IS_WIN = sys.platform.startswith('win')
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 print('Update Failed. Bailing.') 78 print('Update Failed. Bailing.')
79 return rv 79 return rv
80 80
81 DoBuild(chrome_root, args[2:]) 81 DoBuild(chrome_root, args[2:])
82 print('Success!') 82 print('Success!')
83 return 0 83 return 0
84 84
85 85
86 if __name__ == "__main__": 86 if __name__ == "__main__":
87 sys.exit(Main(sys.argv)) 87 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | drover.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698