[Distutils] Another string-method call in distutils

M.-A. Lemburg mal@lemburg.com
Wed Feb 6 08:52:02 2002


Thomas Heller wrote:
> 
> Another recent change which doesn_t run in 1.5.2, and a proposed patch:

+1 from here.
 
> Thomas
> 
> Index: msvccompiler.py
> ===================================================================
> RCS file: /cvsroot/python/distutils/distutils/msvccompiler.py,v
> retrieving revision 1.44
> diff -c -r1.44 msvccompiler.py
> *** msvccompiler.py 2002/01/29 10:23:42 1.44
> --- msvccompiler.py 2002/02/06 13:22:11
> ***************
> *** 117,126 ****
>                       if string.upper(p) == path:
>                           V = string.split(v,';')
>                           for v in V:
> !                             try:
> !                                 v = v.encode("mbcs")
> !                             except UnicodeError:
> !                                 pass
>                               if v == '' or v in L: continue
>                               L.append(v)
>                           break
> --- 117,127 ----
>                       if string.upper(p) == path:
>                           V = string.split(v,';')
>                           for v in V:
> !                             if hasattr(v, "encode"):
> !                                 try:
> !                                     v = v.encode("mbcs")
> !                                 except UnicodeError:
> !                                     pass
>                               if v == '' or v in L: continue
>                               L.append(v)
>                           break
> 
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/