Ezio Melotti <ezio.melotti at gmail.com> added the comment: + if sub.find(',') != -1: Please use the 'in' operator here. ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue9584> _______________________________________