This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ajaksu2, chris.mahan, vstinner
Date 2009-01-02.14:16:30
SpamBayes Score 9.8916935e-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:32vstinnersetrecipients: + vstinner, ajaksu2, chris.mahan
2009-01-02 14:16:32vstinnersetmessageid: <1230905792.13.0.760045849768.issue4791@psf.upfronthosting.co.za>
2009-01-02 14:16:31vstinnerlinkissue4791 messages
2009-01-02 14:16:30vstinnercreate