On 10/28/10 1:25 PM, Darren Dale wrote:
>>> No, I did not. You are right, this shows \r\n. Why is it necessary to
>>> open them as binary? IIUC (OIDUC), one should use 'rU' to unify line
>>> endings.

> Although, on a mac:
>

> In [1]: 
> open('tools/win32build/nsis_scripts/numpy-superinstaller.nsi.in').readlines()[0]
> Out[1]: ';--------------------------------\r\n'

that's what the 'U' is for. try:

open('tools/win32build/nsis_scripts/numpy-superinstaller.nsi.in','rU').readlines()[0]


-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to