]> granicus.if.org Git - python/commitdiff
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 22:05:58 +0000 (00:05 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 22:05:58 +0000 (00:05 +0200)
Don't encode the path list

Lib/packaging/compiler/msvc9compiler.py

index 6af0258e114702f9b07085061fb5e42997e0e784..43fc5fa2dbac541dd6be476c73d0cae77f2562d3 100644 (file)
@@ -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']