[Python-3000-checkins] r55220 - python/branches/py3k-struni/Lib/test/test_codecs.py

Georg Brandl g.brandl at gmx.net
Fri May 11 13:32:21 CEST 2007


Walter Dörwald schrieb:
> Guido van Rossum wrote:
>> On 5/10/07, Walter Dörwald <walter at livinglogic.de> wrote:
>>> Guido van Rossum wrote:
>>>
>>> > Yeah, the solution is to use io.BytesIO where bytes are read/written.
>>>
>>> Done, most remaining errors are from the CJK codecs and from the idna 
>>> codec.
> 
> OK, the idna codecs is fixed now too.
> 
> BTW, the message from the pre-commit hook is somewhat unhelpful:
> 
> svn: 'pre-commit' hook failed with error output:
> file /python/branches/py3k-struni/Lib/encodings/idna.py is not 
> whitespace-normalized
> 
> If possible the message should include info about the nature of the 
> problem (tabs, trailing whitespace) and it's location.

This is not so easy since reindent.py doesn't have a way to show that,
you could generate a diff, but it wouldn't be so helpful either because
it can't show whitespaces so well :)

But why do you need to know the exact location if you can just let
reindent.py run over the file?

Georg



More information about the Python-3000-checkins mailing list