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

Unified Diff: gclient_utils.py

Issue 6683028: Fix win32api and win32con definition order. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698