Re: script in Linux vs Windows

2010-10-10 Thread Dave Angel
On 2:59 PM, Lawrence D'Oliveiro wrote: In message, Dennis Lee Bieber wrote: On Windows, the I/O system for text files converts into a on input, and on output converts to. Is it Windows doing that, or is it some Visual Studio library? Windows OS itself does not transform any newlines at

Re: script in Linux vs Windows

2010-10-09 Thread Lawrence D'Oliveiro
In message , Dennis Lee Bieber wrote: > On Windows, the I/O system for text files converts into a > on input, and on output converts to . Is it Windows doing that, or is it some Visual Studio library? -- http://mail.python.org/mailman/listinfo/python-list

Re: script in Linux vs Windows

2010-10-09 Thread aurfalien
On Oct 8, 2010, at 9:33 PM, Dennis Lee Bieber wrote: On Fri, 8 Oct 2010 14:52:33 -0700, aurfal...@gmail.com declaimed the following in gmane.comp.python.general: Hi all, Unsure how to deal with what appears to be \n vs \r issues. The following code works in Linux; o = open("axenfs.reg") n =

Re: script in Linux vs Windows

2010-10-08 Thread aurfalien
On Oct 8, 2010, at 4:27 PM, Ian Kelly wrote: On Fri, Oct 8, 2010 at 3:52 PM, wrote: Hi all, Unsure how to deal with what appears to be \n vs \r issues. The following code works in Linux; o = open("axenfs.reg") n = open("axenfs2.reg", "a") while 1: line = o.readline() if not line: break l

Re: script in Linux vs Windows

2010-10-08 Thread MRAB
On 08/10/2010 22:52, aurfal...@gmail.com wrote: Hi all, Unsure how to deal with what appears to be \n vs \r issues. The following code works in Linux; o = open("axenfs.reg") n = open("axenfs2.reg", "a") while 1: line = o.readline() if not line: break line = line.replace("dword:0","dw

Re: script in Linux vs Windows

2010-10-08 Thread Ian Kelly
On Fri, Oct 8, 2010 at 3:52 PM, wrote: > Hi all, > > Unsure how to deal with what appears to be \n vs \r issues. > > The following code works in Linux; > > o = open("axenfs.reg") > n = open("axenfs2.reg", "a") > while 1: > line = o.readline() > if not line: break > line = line.replace("dword:0

script in Linux vs Windows

2010-10-08 Thread aurfalien
Hi all, Unsure how to deal with what appears to be \n vs \r issues. The following code works in Linux; o = open("axenfs.reg") n = open("axenfs2.reg", "a") while 1: line = o.readline() if not line: break line = line.replace("dword:0","dword:044e") n.write(line) n.close() But in Wind

script in Linux vs Windows

2010-10-08 Thread aurfalien
Hi all, Unsure how to deal with what appears to be \n vs \r issues. The following code works in Linux; o = open("axenfs.reg") n = open("axenfs2.reg", "a") while 1: line = o.readline() if not line: break line = line.replace("dword:0","dword:044e") n.write(line) n.close() But in