Message78799
| 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: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 |
|