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

Unified Diff: build/mac/find_sdk.py

Issue 539843002: find_sdk.py: pylint clean (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_flash
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/mac/find_sdk.py
diff --git a/build/mac/find_sdk.py b/build/mac/find_sdk.py
index 1d7634391fa4d66b2baeec276429836c39d53283..0534766e8077e763521882156c45aef95ae6628b 100755
--- a/build/mac/find_sdk.py
+++ b/build/mac/find_sdk.py
@@ -3,11 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import os
-import re
-import subprocess
-import sys
-
"""Prints the lowest locally available SDK version greater than or equal to a
given minimum sdk version to standard output.
@@ -15,6 +10,12 @@ Usage:
python find_sdk.py 10.6 # Ignores SDKs < 10.6
"""
+import os
+import re
+import subprocess
+import sys
+
+
from optparse import OptionParser
@@ -42,8 +43,8 @@ def main():
stderr=subprocess.STDOUT)
out, err = job.communicate()
if job.returncode != 0:
- print >>sys.stderr, out
- print >>sys.stderr, err
+ print >> sys.stderr, out
+ print >> sys.stderr, err
raise Exception(('Error %d running xcode-select, you might have to run '
'|sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer| '
'if you are using Xcode 4.') % job.returncode)
@@ -63,17 +64,17 @@ def main():
best_sdk = sorted(sdks, key=parse_version)[0]
if options.verify and best_sdk != min_sdk_version and not options.sdk_path:
- print >>sys.stderr, ''
- print >>sys.stderr, ' vvvvvvv'
- print >>sys.stderr, ''
- print >>sys.stderr, \
+ print >> sys.stderr, ''
+ print >> sys.stderr, ' vvvvvvv'
+ print >> sys.stderr, ''
+ print >> sys.stderr, \
'This build requires the %s SDK, but it was not found on your system.' \
% min_sdk_version
- print >>sys.stderr, \
+ print >> sys.stderr, \
'Either install it, or explicitly set mac_sdk in your GYP_DEFINES.'
- print >>sys.stderr, ''
- print >>sys.stderr, ' ^^^^^^^'
- print >>sys.stderr, ''
+ print >> sys.stderr, ''
+ print >> sys.stderr, ' ^^^^^^^'
+ print >> sys.stderr, ''
return min_sdk_version
if options.print_sdk_path:
« 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