How to modify this script?

Chris Angelico rosuav at gmail.com
Sun Jan 6 15:52:14 CET 2013


On Mon, Jan 7, 2013 at 1:40 AM, Kurt Hansen <kurt at ugyldig.invalid> wrote:
> failed: cannot concatenate 'str' and 'tuple' objects

The problem is this line:

output += '<tr><td colspan="3">', line, '</td></tr>'

Change it to:

output += '<tr><td colspan="3">' + line + '</td></tr>'

ChrisA



More information about the Python-list mailing list