Re: Unable to strip \n characters

2007-05-23 Thread Asun Friere
On May 22, 6:37 am, aiwarrior <[EMAIL PROTECTED]> wrote: > On May 21, 7:05 am, Asun Friere <[EMAIL PROTECTED]> wrote: > > > On May 20, 10:49 pm, Michael Bentley <[EMAIL PROTECTED]> > > wrote: > > > > On May 20, 2007, at 7:41 AM, Michael Bentley wrote: > > > > > (upload.strip()) > > > > Oops: (uploa

Re: Unable to strip \n characters

2007-05-21 Thread aiwarrior
On May 21, 7:05 am, Asun Friere <[EMAIL PROTECTED]> wrote: > On May 20, 10:49 pm, Michael Bentley <[EMAIL PROTECTED]> > wrote: > > > On May 20, 2007, at 7:41 AM, Michael Bentley wrote: > > > > (upload.strip()) > > > Oops: (upload.strip(),) or upload.strip() > > Superfluous though the braces around

Re: Unable to strip \n characters

2007-05-20 Thread Asun Friere
On May 20, 10:49 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On May 20, 2007, at 7:41 AM, Michael Bentley wrote: > > > (upload.strip()) > > Oops: (upload.strip(),) or upload.strip() Superfluous though the braces around your original were, it should still run ... ie. (a) == a -- http://mail.

Re: Unable to strip \n characters

2007-05-20 Thread Michael Bentley
On May 20, 2007, at 7:41 AM, Michael Bentley wrote: > (upload.strip()) Oops: (upload.strip(),) or upload.strip() -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to strip \n characters

2007-05-20 Thread Michael Bentley
On May 20, 2007, at 5:50 AM, aiwarrior wrote: > files = f.readlines() >for upload in files: > upload.strip("\n") > final_args = "./rsapiresume.pl %s prem user password" % (upload) > print upload > #os.system( final_args ) for upload in f: final_args = "./rsapiresu

Re: Unable to strip \n characters

2007-05-20 Thread Peter Otten
aiwarrior wrote: > Im writing a personal wrapper to the perl script offered by > rapidshare, so that im able to use multiple files and glob pathnames, > but im using a file so i can track and resume any uploading data. The > problem is the lines come with a \n character that im not bein able to >

Unable to strip \n characters

2007-05-20 Thread aiwarrior
Hi Im writing a personal wrapper to the perl script offered by rapidshare, so that im able to use multiple files and glob pathnames, but im using a file so i can track and resume any uploading data. The problem is the lines come with a \n character that im not bein able to take out, files