New submission from Serhiy Storchaka:
My editors are configured to remove trailing spaces (this is useful for
removing artifacts of indentation). The flip side of this is that my patches
sometimes contain unrelated trailing spaces fixes.
Trailing spaces are not significant in any CPython source file, their presence
I believe mistake. Easier once we remove all spaces and then prevent the
appearance of new, than constantly face to unrelated changes. I'm not attaching
a patch (it is too big, over 5 MB), anyone can create it by the following
commands:
hg status -cn | tr '\n' '\0' | xargs -0 sed -i -re 's/[ \t]+$//'
It would be good if the Mercurial would had hook, which automatically remove
trailing spaces or prohibit to commit patches that contain trailing spaces.
----------
messages: 167337
nosy: storchaka
priority: normal
severity: normal
status: open
title: Trailing white spaces
type: enhancement
versions: Python 3.4
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15550>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com