From: Victor Stinner Date: Thu, 19 May 2011 21:46:03 +0000 (+0200) Subject: fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes X-Git-Tag: v3.3.0a1~2230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9999185447625978db704950e6511c28eaf58de9;p=python fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes --- diff --git a/Lib/packaging/compiler/msvc9compiler.py b/Lib/packaging/compiler/msvc9compiler.py index 7a19f47447..6af0258e11 100644 --- a/Lib/packaging/compiler/msvc9compiler.py +++ b/Lib/packaging/compiler/msvc9compiler.py @@ -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, "