Commit 74b46cea authored by Jason R. Coombs's avatar Jason R. Coombs

Revert "In msvc9_query_vcvarsall, ensure dict values are not unicode. Fixes #992."

This reverts commit b50fdf49.
parent 862da016
......@@ -27,7 +27,6 @@ from packaging.version import LegacyVersion
from six.moves import filterfalse
from .monkey import get_unpatched
from . import py27compat
if platform.system() == 'Windows':
from six.moves import winreg
......@@ -136,13 +135,11 @@ def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs):
# If error, try to set environment directly
try:
env = EnvironmentInfo(arch, ver).return_env()
return EnvironmentInfo(arch, ver).return_env()
except distutils.errors.DistutilsPlatformError as exc:
_augment_exception(exc, ver, arch)
raise
return py27compat.dict_values_strings(env)
def msvc14_get_vc_env(plat_spec):
"""
......
......@@ -26,17 +26,3 @@ linux_py2_ascii = (
rmtree_safe = str if linux_py2_ascii else lambda x: x
"""Workaround for http://bugs.python.org/issue24672"""
def dict_values_strings(dict_):
"""
Given a dict, make sure the text values are str.
"""
if six.PY3:
return dict_
# When dropping Python 2.6 support, use a dict constructor
return dict(
(key, str(value))
for key, value in dict_.iteritems()
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment