aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJ. Goutin <JGoutin@users.noreply.github.com>2016-07-03 15:26:20 +0200
committerGitHub <noreply@github.com>2016-07-03 15:26:20 +0200
commit2aa04076e57845abdf9e0cc5238bdcc23ae5e58e (patch)
tree81fc08b8730a2a4d3ecd81647b39b4ba2ebfecf5 /setuptools
parentb4b913b18c07a9d2bce8ae57da7e8c45bf17c28b (diff)
downloadexternal_python_setuptools-2aa04076e57845abdf9e0cc5238bdcc23ae5e58e.tar.gz
external_python_setuptools-2aa04076e57845abdf9e0cc5238bdcc23ae5e58e.tar.bz2
external_python_setuptools-2aa04076e57845abdf9e0cc5238bdcc23ae5e58e.zip
Update msvc.py
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/msvc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index 5e6c1c25..0851b193 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -7,10 +7,10 @@ import itertools
import distutils.errors
from setuptools.extern.six.moves import filterfalse
-try:
+if platform.system() == Windows:
from setuptools.extern.six.moves import winreg
safe_env = os.environ
-except ImportError:
+else:
"""
Mock winreg and environ so the module can be imported
on this platform.