Unable to strip \n characters
aiwarrior
zubeido at yahoo.com.br
Sun May 20 06:50:03 EDT 2007
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 = f.readlines()
for upload in files:
upload.strip("\n")
final_args = "./rsapiresume.pl %s prem user password"
% (upload)
print upload
#os.system( final_args )
My upload string still comes with the \n making the system call look
like this:
./rsapiresume.pl filename_to_upload
prem user password
I've already tried replace but it doesn't work either
More information about the Python-list
mailing list