Re: [Python-Dev] [Python-checkins] python/dist/src/Tools/bgen/bgen bgenGenerator.py, 1.17, 1.18 bgenObjectDefinition.py, 1.29, 1.30 bgenType.py, 1.15, 1.16 bgenVariable.py, 1.6, 1.7 scantools.py, 1.37, 1.38
On 24-jun-2005, at 21:46, tim_one@users.sourceforge.net wrote:
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18095/Tools/ bgen/bgen
Modified Files: bgenGenerator.py bgenObjectDefinition.py bgenType.py bgenVariable.py scantools.py Log Message: Normalize whitespace to avoid offending Bug Day volunteers.
Argh, sorry... I thought I had all my machines educated to do tab
expansion for Python, but apparently not...
--
Jack Jansen,
[tim_one@users.sourceforge.net]
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18095/Tools/ bgen/bgen
Modified Files: bgenGenerator.py bgenObjectDefinition.py bgenType.py bgenVariable.py scantools.py Log Message: Normalize whitespace to avoid offending Bug Day volunteers.
[Jack Jansen]
Argh, sorry... I thought I had all my machines educated to do tab expansion for Python, but apparently not...
You probably do. I run Tools/scripts/reindent.py over the whole source tree from time to time, and check in whatever it changes. Converting tabs to 4-space indents is one of the things it does, but not the only thing. Most often these days it finds trailing whitespace at the end of a line, and snips it off. Once in a great while, that catches code that *depends* on trailing whitespace (typically in a long string literal), which is viciously obscure (nobody looking at the file can see the dependence, and editors may remove it). It also removes empty lines at the end of a .py file, ensures that the final line ends with a newline, and changes "oddball" indent levels to 4-space indents (curiously, that one triggers 2nd-most often these days). In any case, it's not like this is work <wink> -- no need to feel apologetic.
participants (2)
-
Jack Jansen
-
Tim Peters