Index: gclient_utils.py |
diff --git a/gclient_utils.py b/gclient_utils.py |
index 8e2d1c315e19807b8ade9c65ee3013b87dee6029..64f4dcb28ba2cb69bf71abc2eb4152f1bf6f164c 100644 |
--- a/gclient_utils.py |
+++ b/gclient_utils.py |
@@ -216,9 +216,12 @@ def rmtree(path): |
if sys.platform == 'win32': |
# Some people don't have the APIs installed. In that case we'll do without. |
+ win32api = None |
+ win32con = None |
try: |
- win32api = __import__('win32api') |
- win32con = __import__('win32con') |
+ # Unable to import 'XX' |
+ # pylint: disable=F0401 |
+ import win32api, win32con |
except ImportError: |
pass |
else: |