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 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:12nneonneosetrecipients: + nneonneo
2011-05-04 21:45:12nneonneosetmessageid: <1304545512.58.0.371208627272.issue12002@psf.upfronthosting.co.za>
2011-05-04 21:45:11nneonneolinkissue12002 messages
2011-05-04 21:45:11nneonneocreate