Mailing List Archive

smtplib error in 1.5.2
Hi,

Everything has seemed to work in 1.5.1 but after installing 1.5.2 on our
Unix box running Solaris 2.5 I get this error when trying to use smtplib

>>> import rfc822, string, sys
>>> import smtplib
>>>msg='Test Message'
>>>s = smtplib.SMTP('localhost')
>>> s.sendmail('me@my.com',['me@my.com'],msg)
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python1.5.2/smtplib.py", line 480, in sendmail
(code,resp)=self.data(msg)
File "/usr/local/lib/python1.5.2/smtplib.py", line 374, in data
self.send(quotedata(msg))
File "/usr/local/lib/python1.5.2/smtplib.py", line 134, in quotedata
re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
File "/usr/local/lib/python1.5.2/re.py", line 48, in sub
return pattern.sub(repl, string, count)
File "/usr/local/lib/python1.5.2/re.py", line 133, in sub
return self.subn(repl, string, count)[0]
File "/usr/local/lib/python1.5.2/re.py", line 167, in subn
regs = match(source, pos, end, 0)
TypeError: argument 1: expected read-only character buffer, list found

======
Is there something obvious I do not see?