summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/reindent.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30109: Fix reindent.py for non-ASCII files. (#5637)Serhiy Storchaka2018-02-121-11/+29
| | | | | It now processes files as binary streams. This also fixes "make reindent".
* Fixes #10639: reindent.py should not convert newlinesJason R. Coombs2011-07-271-3/+14
| | | | Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
* don't recurse into directories that start with '.'Benjamin Peterson2008-10-151-1/+2
|
* Add Tools/scripts/patchcheck.py. Invoked from ``make check``, the script doesBrett Cannon2008-03-181-0/+2
| | | | | | | | | | | | | some verification: - Runs reindent.py on all .py files. - Checks if any changes in Doc exist. - Whether Misc/ACKS was changed. - Whether Misc/NEWS was changed. The hope is that ``make check`` can become a command anybody can run to get reminders about what all the requisite steps needed to create a proper patch/checkin.
* Now we handle different the backup copy, because of securityFacundo Batista2008-02-171-16/+24
| | | | issues regarding user/group and permissions. Fixes 1050828.
* Make reindent.py executable.Georg Brandl2007-06-071-0/+0
|
* add usage() function, -h(elp) flag and long versions of short flagsSkip Montanaro2004-03-271-8/+18
|
* operate as a filter when no files or directories appear on the command lineSkip Montanaro2002-03-261-9/+17
|
* SF bug #497839: reindent chokes on empty first lines.Tim Peters2002-02-171-0/+4
| | | | | | Reindenter.run(): copy over initial all-whitespace lines (if any, and after normalizing to remove trailing blanks and tabs). Bugfix candidate.
* Changed the reindenter to strip only trailing spaces and tabs from lines,Tim Peters2001-10-041-3/+16
| | | | | not other control characters string.rstrip() got rid of. This caters to the \f thingies Barry likes putting in Python source files.
* New tool for normalizing indentation of .py files.Tim Peters2000-10-051-0/+258