Message78799
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). |
|
Date |
User |
Action |
Args |
2009-01-02 14:16:32 | vstinner | set | recipients:
+ vstinner, ajaksu2, chris.mahan |
2009-01-02 14:16:32 | vstinner | set | messageid: <1230905792.13.0.760045849768.issue4791@psf.upfronthosting.co.za> |
2009-01-02 14:16:31 | vstinner | link | issue4791 messages |
2009-01-02 14:16:30 | vstinner | create | |
|