[Python-checkins] cpython: make sure split() is called before the encoding

tarek.ziade python-checkins at python.org
Thu May 19 13:59:58 CEST 2011


http://hg.python.org/cpython/rev/98d3d424b641
changeset:   70196:98d3d424b641
user:        Tarek Ziade <tarek at ziade.org>
date:        Thu May 19 13:59:45 2011 +0200
summary:
  make sure split() is called before the encoding

files:
  Lib/packaging/compiler/msvc9compiler.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/packaging/compiler/msvc9compiler.py b/Lib/packaging/compiler/msvc9compiler.py
--- a/Lib/packaging/compiler/msvc9compiler.py
+++ b/Lib/packaging/compiler/msvc9compiler.py
@@ -356,7 +356,7 @@
             vc_env = query_vcvarsall(VERSION, plat_spec)
 
             # take care to only use strings in the environment.
-            self.__paths = vc_env['path'].encode('mbcs').split(os.pathsep)
+            self.__paths = vc_env['path'].split(os.pathsep).encode('mbcs')
             os.environ['lib'] = vc_env['lib'].encode('mbcs')
             os.environ['include'] = vc_env['include'].encode('mbcs')
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list