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 |