Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 5d3c9b352534ab44979393d93e5cd03489c96548..9531deee314e75749c6dbffcec873a9a0817bf68 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -57,17 +57,17 @@ def RunPylint(input_api, output_api): |
# It uses non-standard pylint exceptions that makes pylint always fail. |
files.remove('cpplint.py') |
try: |
- proc = input_api.subprocess.Popen(['pylint', '-E'] + sorted(files)) |
+ proc = input_api.subprocess.Popen(['pylint'] + sorted(files)) |
proc.communicate() |
if proc.returncode: |
return [output_api.PresubmitError('Fix pylint errors first.')] |
return [] |
- except OSError, e: |
+ except OSError: |
if input_api.platform == 'win32': |
- return [output_api.PresubmitNotifyResult( |
- 'Warning: Can\'t run pylint because it is not installed. Please ' |
- 'install manually\n' |
- 'Cannot do static analysis of python files.')] |
+ return [output_api.PresubmitNotifyResult( |
+ 'Warning: Can\'t run pylint because it is not installed. Please ' |
+ 'install manually\n' |
+ 'Cannot do static analysis of python files.')] |
return [output_api.PresubmitError( |
'Please install pylint with "sudo apt-get install python-setuptools; ' |
'sudo easy_install pylint"\n' |