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: behavior
Szymon Sobik added the comment:
Traceback (most recent call last):
File ./nntp_test.py, line 23, in module
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.py, line 895, in _post
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 rep...@bugs.python.org
http://bugs.python.org/issue19770