Roger Serwy <roger.serwy at gmail.com> added the comment: Ah, that's subtle. There's a comma at the end of that ["text"] line which is making the string a one-element tuple. Removing it fixes the issue. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue14163> _______________________________________