[Numpy-discussion] whitespace in git repo

Christopher Barker Chris.Barker@noaa....
Thu Oct 28 16:16:33 CDT 2010


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

Chris.Barker@noaa.gov


More information about the NumPy-Discussion mailing list