]> granicus.if.org Git - python/commitdiff
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 21:46:03 +0000 (23:46 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 21:46:03 +0000 (23:46 +0200)
Lib/packaging/compiler/msvc9compiler.py

index 7a19f47447a1c3c617e89550a3b3c998759dfe90..6af0258e114702f9b07085061fb5e42997e0e784 100644 (file)
@@ -358,8 +358,8 @@ class MSVCCompiler(CCompiler) :
             # take care to only use strings in the environment.
             self.__paths = [part.encode('mbcs') for part in
                             vc_env['path'].split(os.pathsep)]
-            os.environ['lib'] = vc_env['lib'].encode('mbcs')
-            os.environ['include'] = vc_env['include'].encode('mbcs')
+            os.environ['lib'] = vc_env['lib']
+            os.environ['include'] = vc_env['include']
 
             if len(self.__paths) == 0:
                 raise PackagingPlatformError("Python was built with %s, "