[Python-Dev] whitespace normalization pre-commit hook is giving me grief (original) (raw)

Brett Cannon brett at python.org
Tue May 29 19:38:31 CEST 2007


On 5/28/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:

Brett Cannon schrieb: > Unfortunately the pre-commit hook > does not specify what line a change was made on so I have no clue where > it is failing (maybe this should be added?). It creates a reindent.Reindenter on the new contents, then invokes .run() on it, and complains if that returns true. If you can come up with a patch to reindent that makes it report more detailed errors, please post it, and I'll try to merge it into the hook script.

The commit worked. Thanks for fixing this, Martin! And thanks to Georg for finding the initial solution. And thanks to Neal for trying Georg's initial solution.

-Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20070529/586b3c17/attachment.html



More information about the Python-Dev mailing list