New submission from Ayman <ayman.alsair...@gmail.com>: in ftplibs.storlines, a call is done on what should be a Text stream: fp.readline() This would work in pre 3.x as it returns bytes but now that readlines returns a string, the call at lines 477 would fail:
File "C:\Python31\lib\ftplib.py", line 477, in storlines if buf[-1] in B_CRLF: buf = buf[:-1] TypeError: Type str doesn't support the buffer API The readline call should then be encoded(). ---------- components: Library (Lib) messages: 91997 nosy: aymanhs severity: normal status: open title: ftplib storelines does not honor strings returned in fp.readline type: crash versions: Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6789> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com