Author haypo
Recipients ajaksu2, chris.mahan, haypo
Date 2009-01-02.14:16:30
SpamBayes Score 9.89169e-06
Marked as misclassified No
Message-id <1230905792.13.0.760045849768.issue4791@psf.upfronthosting.co.za>
In-reply-to
Content
Can you paste the full output with debuglevel=3?

"if not line:" should be equivalent to "if len(line) == 0:" and to "if 
line == '':".

ftp.dir() is equivalent to ftp.retrlines('LIST').

By default, the socket created to get the result of LIST has no 
timeout (is blocking). So fp.readline() only returns an empty string 
when the socket is closed (by the server).

fp is a io.BufferedReader(SocketIO(socket, "r"), 
io.DEFAULT_BUFFER_SIZE).
History
Date User Action Args
2009-01-02 14:16:32hayposetrecipients: + haypo, ajaksu2, chris.mahan
2009-01-02 14:16:32hayposetmessageid: <1230905792.13.0.760045849768.issue4791@psf.upfronthosting.co.za>
2009-01-02 14:16:31haypolinkissue4791 messages
2009-01-02 14:16:30haypocreate