[pysqlite] [APSWS] AttributeError: 'tuple' object has no attribute 'lstrip'

Fred <[email protected]> Mon, 05 Jan 2009 08:25:31 +0100
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hello

I'm trying to fetch email addresses from an SQLite database and send 
email using... the email package, but it calls the lstrip() method, 
which isn't supported by APSW:

=====
from email.MIMEText import MIMEText
import smtplib,sys
import apsw
[...]
sql='SELECT email FROM person WHERE email IS NOT NULL'
rows=list(cursor.execute(sql))
for email in rows:
	To = email
	msg['To'] = email

	#print stuff
	#(u'dummy-PV5Ro7/[email protected],)
	
	#File "C:\Python25\lib\email\quoprimime.py", line 97, in _max_append
	#L.append(s.lstrip())
	#AttributeError: 'tuple' object has no attribute 'lstrip'
	server.sendmail(From,[To],msg.as_string())
=====

Any idea what I could try to combine APSW and email succesfully?

Thank you.