[Python-checkins] cpython: fixed the path splitting

tarek.ziade python-checkins at python.org
Thu May 19 15:52:02 CEST 2011


http://hg.python.org/cpython/rev/56c7837d062a
changeset: 70201:56c7837d062a
user: Tarek Ziade <tarek at ziade.org>
date: Thu May 19 15:51:54 2011 +0200
summary:
 fixed the path splitting
files:
 Lib/packaging/compiler/msvc9compiler.py | 3 ++-
 1 files changed, 2 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,8 @@
 vc_env = query_vcvarsall(VERSION, plat_spec)
 
 # take care to only use strings in the environment.
- self.__paths = vc_env['path'].split(os.pathsep).encode('mbcs')
+ 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')
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /