[issue7594] shlex refactoring

Ezio Melotti report at bugs.python.org
Tue Dec 29 09:39:21 CET 2009


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Thanks for the patch.

Three minor things:
1) the source contains non-ASCII chars and an encoding declaration at
the beginning of the file. PEP8 says that "using \x, \u or \U escapes is
the preferred way to include non-ASCII data in string literals", so I
would use \x escapes and remove the encoding declaration;
2) the class "stream_source" should be named "StreamSource" unless there
are compatibility or consistency issues;
3) patches should be done against trunk first (your patch applies fine
on trunk too and the tests pass), they will then be ported to py3k.

----------
keywords: +needs review
nosy: +ezio.melotti
priority:  -> normal
stage:  -> patch review
versions: +Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7594>
_______________________________________


More information about the Python-bugs-list mailing list