New submission from Julien ÉLIE <jul...@trigofacile.com>: I believe the case of "IMPLEMENTATION" should be treated differently. It is not helpful at all to split the argument. It is meant to be a text string and ['INN', '2.6.0', '(20101101', 'prelease)'] does not have much meaning...
Suggestion: if line.startswith("IMPLEMENTATION"): name, *tokens = line.split(None, 1) else: name, *tokens = line.split() or something else, though I do not believe another keyword will begin with "IMPLEMENTATION"... Besides, shouldn't it be checked that the line is not empty, before splitting it? ---------- components: Extension Modules messages: 120159 nosy: jelie priority: normal severity: normal status: open title: IMPLEMENTATION token differently delt with in NNTP capability type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10282> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com