mirror of
https://github.com/python/cpython.git
synced 2025-11-18 01:57:37 +00:00
Make it 1.5.2 compatible again.
This commit is contained in:
parent
bd3be8f0ca
commit
745b4609cb
1 changed files with 5 additions and 4 deletions
|
|
@ -117,10 +117,11 @@ def get_msvc_paths (path, version='6.0', platform='x86'):
|
||||||
if string.upper(p) == path:
|
if string.upper(p) == path:
|
||||||
V = string.split(v,';')
|
V = string.split(v,';')
|
||||||
for v in V:
|
for v in V:
|
||||||
try:
|
if hasattr(v, "encode"):
|
||||||
v = v.encode("mbcs")
|
try:
|
||||||
except UnicodeError:
|
v = v.encode("mbcs")
|
||||||
pass
|
except UnicodeError:
|
||||||
|
pass
|
||||||
if v == '' or v in L: continue
|
if v == '' or v in L: continue
|
||||||
L.append(v)
|
L.append(v)
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue