Message135158
| Author |
nneonneo |
| Recipients |
nneonneo |
| Date |
2011年05月04日.21:45:11 |
| SpamBayes Score |
2.866908e-07 |
| Marked as misclassified |
No |
| Message-id |
<1304545512.58.0.371208627272.issue12002@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On Python 3.2, calling abort() on an ftplib.FTP object will cause an exception:
>>> ftp = ftplib.FTP('localhost')
>>> ftp.abort()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.2/ftplib.py", line 246, in abort
self.sock.sendall(line, MSG_OOB)
TypeError: 'str' does not support the buffer interface
The offending line, ftplib.py:246, should be replaced by
self.sock.sendall(line.encode(self.encoding), MSG_OOB) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月04日 21:45:12 | nneonneo | set | recipients:
+ nneonneo |
| 2011年05月04日 21:45:12 | nneonneo | set | messageid: <1304545512.58.0.371208627272.issue12002@psf.upfronthosting.co.za> |
| 2011年05月04日 21:45:11 | nneonneo | link | issue12002 messages |
| 2011年05月04日 21:45:11 | nneonneo | create |
|