mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Backport theller's check-in of revision 1.45:
Make it 1.5.2 compatible again. (I'm not sure how having symlinks around the repository interacts with branches -- I'm going to tread carefully in here)
This commit is contained in:
@@ -117,10 +117,11 @@ def get_msvc_paths (path, version='6.0', platform='x86'):
|
||||
if string.upper(p) == path:
|
||||
V = string.split(v,';')
|
||||
for v in V:
|
||||
try:
|
||||
v = v.encode("mbcs")
|
||||
except UnicodeError:
|
||||
pass
|
||||
if hasattr(v, "encode"):
|
||||
try:
|
||||
v = v.encode("mbcs")
|
||||
except UnicodeError:
|
||||
pass
|
||||
if v == '' or v in L: continue
|
||||
L.append(v)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user