Den 06/01/13 15.52, Chris Angelico skrev:
On Mon, Jan 7, 2013 at 1:40 AM, Kurt Hansen <kurt@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>'
:-)
Something happened allright, but ...
Output with this change:
<td colspan="3">' + line + '</td></tr>'
else:
for item in columns:
output += '<td\>' + item + '</td\> '
output += '</tr\>\n';
output += '</table\>';
return output
>
--
Venlig hilsen
Kurt Hansen
--
http://mail.python.org/mailman/listinfo/python-list