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 =

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 Windows,

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 Windows, its

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, 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

msg.attach multiple attachments and passing vars to html

2010-08-31 Thread aurfalien
Hi, Few questions as I've been at this for dayz. Can I do multiple attachments in order via msg.attach as so; part1 = MIMEText(html, 'html') msg.attach(part1) part2 = MIMEText(text, 'plain') msg.attach(part2) part3 = MIMEText(html, 'html') msg.attach(part3) I desire to attach part1, part2 and

TypeError: unsupported operand types for +: 'NoneType' and 'str'

2009-11-17 Thread aurfalien
Hi all, I tried to make the subject as specific as possible rather then just help me or its broke or my server is down, etc... So please excuse me if its too specific as I wasn't trying to be ridiculous. So I've been handed some one else's work to fix. While its fun and all, I haven't