[issue9308] Remove redundant coding cookies from 3.x stdlib
Alexander Belopolsky
report at bugs.python.org
Mon Jul 19 22:12:20 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
In the attached patch, I've removed encoding cookies in all files listed in the message above except
>> Lib/test/bad_coding.py:# -*- coding: uft-8 -*-
>> Lib/test/badsyntax_3131.py:# -*- coding: utf-8 -*-
>> Lib/shlex.py:# -*- coding: iso-8859-1 -*-
The bad_coding contains bad encoding cookie which is being tested, in badsyntax_3131, the cookie could be removed, but I think it clarifies the meaning of the file. It can probably be replaced with a comment explaining what is being tested.
The shlex.py was reverted in r82560, so I am not touching it, but I suspect that the logic used to build wordchars is not correct on systems supporting unicode.
I am adding Peter Åstrand to "nosy" because his name was miscoded in Lib/getopt.py and I fixed it by copying from Misc/ACKS.
----------
keywords: +patch
nosy: +astrand
stage: needs patch -> commit review
Added file: http://bugs.python.org/file18067/issue9308.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9308>
_______________________________________
More information about the Python-bugs-list
mailing list