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

Unified Diff: build/android/pylib/pexpect.py

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move disables into modules. Created 6 years, 11 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
Index: build/android/pylib/pexpect.py
diff --git a/build/android/pylib/pexpect.py b/build/android/pylib/pexpect.py
index f566f1c52fde792453eb425d564eae3d1614ef2a..cf59fb0f6d368a060ea566d550e1bdd6834e8553 100644
--- a/build/android/pylib/pexpect.py
+++ b/build/android/pylib/pexpect.py
@@ -16,6 +16,6 @@ if _PEXPECT_PATH not in sys.path:
# pexpect is not available on all platforms. We allow this file to be imported
# on platforms without pexpect and only fail when pexpect is actually used.
try:
- from pexpect import *
-except:
+ from pexpect import * # pylint: disable=W0401,W0614
+except ImportError:
pass

Powered by Google App Engine
This is Rietveld 408576698