[issue10282] IMPLEMENTATION token differently delt with in NNTP capability
Julien ÉLIE
report at bugs.python.org
Mon Nov 1 21:16:07 CET 2010
New submission from Julien ÉLIE <julien at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10282>
_______________________________________
More information about the Python-bugs-list
mailing list