diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 22:05:58 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 22:05:58 (GMT) |
commit | 8914fed8424f0780fea9a75b5f7fb27bc9e286ec (patch) | |
tree | 8601a647624b540d3c250c34da7cabb69f1eb11e /Lib | |
parent | 9999185447625978db704950e6511c28eaf58de9 (diff) | |
download | cpython-8914fed8424f0780fea9a75b5f7fb27bc9e286ec.zip cpython-8914fed8424f0780fea9a75b5f7fb27bc9e286ec.tar.gz cpython-8914fed8424f0780fea9a75b5f7fb27bc9e286ec.tar.bz2 |
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
Don't encode the path list
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/packaging/compiler/msvc9compiler.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/packaging/compiler/msvc9compiler.py b/Lib/packaging/compiler/msvc9compiler.py index 6af0258..43fc5fa 100644 --- a/Lib/packaging/compiler/msvc9compiler.py +++ b/Lib/packaging/compiler/msvc9compiler.py @@ -356,8 +356,7 @@ class MSVCCompiler(CCompiler) : vc_env = query_vcvarsall(VERSION, plat_spec) # take care to only use strings in the environment. - self.__paths = [part.encode('mbcs') for part in - vc_env['path'].split(os.pathsep)] + self.__paths = vc_env['path'].split(os.pathsep) os.environ['lib'] = vc_env['lib'] os.environ['include'] = vc_env['include'] |