diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 21:46:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 21:46:03 (GMT) |
commit | 9999185447625978db704950e6511c28eaf58de9 (patch) | |
tree | 2267efbb382c21f59928eac4c9a74545e4a9428d | |
parent | 9cf6d131411f1e9bca2f094137a970b711b664c4 (diff) | |
download | cpython-9999185447625978db704950e6511c28eaf58de9.zip cpython-9999185447625978db704950e6511c28eaf58de9.tar.gz cpython-9999185447625978db704950e6511c28eaf58de9.tar.bz2 |
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
-rw-r--r-- | Lib/packaging/compiler/msvc9compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/packaging/compiler/msvc9compiler.py b/Lib/packaging/compiler/msvc9compiler.py index 7a19f47..6af0258 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, " |