diff options
author | ukai <ukai@chromium.org> | 2014-09-04 06:57:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-04 13:59:25 +0000 |
commit | 9520d408282a2a498ef6fc20f9abacfb899abbe7 (patch) | |
tree | 2f11a581ae20436ae4d6c3aa6a67415792699ff4 /build/mac/find_sdk.py | |
parent | 425397116d4ef581f5d96d214b8b2fde7140fbf4 (diff) | |
download | chromium_src-9520d408282a2a498ef6fc20f9abacfb899abbe7.zip chromium_src-9520d408282a2a498ef6fc20f9abacfb899abbe7.tar.gz chromium_src-9520d408282a2a498ef6fc20f9abacfb899abbe7.tar.bz2 |
find_sdk.py: pylint clean
W0105: 16,-1: String statement has no effect
C0323: 45,4:main: Operator not followed by a space
print >>sys.stderr, out
^
BUG=
Review URL: https://codereview.chromium.org/539843002
Cr-Commit-Position: refs/heads/master@{#293294}
Diffstat (limited to 'build/mac/find_sdk.py')
-rwxr-xr-x | build/mac/find_sdk.py | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/build/mac/find_sdk.py b/build/mac/find_sdk.py index 1d76343..0534766 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: |