[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
New submission from Szymon Sobik: post method fails because string methods have bytesrting arguments ie. line = line.rstrip(b"\r\n") + _CRLF -- components: Library (Lib) messages: 204331 nosy: sobczyk priority: normal severity: normal status: open title: NNTP.post broken type

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Traceback (most recent call last): File "./nntp_test.py", line 23, in s.post(msg) File "/usr/lib/python3.3/nntplib.py", line 909, in post return self._post('POST', data) File "/usr/lib/python3.3/nntplib

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Ok I found this out too on my own. It might be better to add examples using the MIME* classes to nntplib documentation. -- ___ Python tracker <http://bugs.python.org/issue19