summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
Commit message (Collapse)AuthorAgeFilesLines
* satisfy the tabnannyJeremy Hylton2000-09-183-358/+358
|
* Allow this script to act like a module by only calling main() ifBarry Warsaw2000-09-161-1/+3
| | | | __name__ == '__main__'. Closes SF bug #110844.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-19/+4
| | | | This should match the situation in the 1.6b1 tree.
* Rob Hooft, Moshe Zadka: converted to 4 space indents and re instead of regex.Guido van Rossum2000-09-012-72/+78
|
* Python code coverage tool by Skip Montanaro and Andrew DalkeJeremy Hylton2000-08-031-0/+661
|
* add expandtabs command (-e)Peter Schneider-Kamp2000-07-111-37/+64
| | | | change eliminate to delete (-d)
* Change copyright notice.Guido van Rossum2000-06-301-21/+6
|
* Running the program through itself reveals that one end tag wasGuido van Rossum2000-06-281-1/+1
| | | | | | | | | | mislabeled. (Using -c and then -e rearranges some comments, so I won't check that in -- but it's a good test anyway. Note that pindent is not perfect -- e.g. it doesn't know about triple-quoted strings!)
* Peter Schneider-Kamp:Guido van Rossum2000-06-281-10/+75
| | | | | | | | | | | | | Problem: A Python program can be completed and reformatted using Tools/scripts/pindent.py. Unfortunately there is no option for removal of the generated "# end"-tags. Although a few Python commands or a "grep -v '# end '" can do wonders here, there are two drawbacks: - not everyone has grep/time to write a Python script - it is not checked whether the "# end"-tags were used validly Solution: add extra option "-e" (eliminate) to pindent.py
* Of course, I forget how to type long ago...Fred Drake2000-03-171-1/+1
| | | | Typo noted by /F.
* "write marshalled" --> "writes marshalled" (in docstring); noted byFred Drake2000-03-171-1/+1
| | | | Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* Marc-Andre Lemburg: addedGuido van Rossum2000-03-102-0/+290
| | | | gencodec.py - Create Python codecs from Unicode mapping files
* Correct type error in getopt.error handling code.Guido van Rossum2000-02-291-1/+1
|
* Script by Tim Peters to discover illegal append() calls.Guido van Rossum2000-02-291-0/+168
|
* Fix multi-arg append().Guido van Rossum2000-02-291-1/+1
|
* Deleting tabpolice.py; it was superceded by tabnanny.py long ago.Guido van Rossum2000-02-231-104/+0
|
* Moved tabnanny.py to standard library status.Guido van Rossum2000-02-231-368/+0
|
* Patch by Gerrit Holl:Guido van Rossum2000-02-142-4/+4
| | | | * In crlf.py and lfcr.py: regsub -> re
* Patch by Gerrit Holl:Guido van Rossum2000-02-141-2/+6
| | | | | | * In logmerge.py: added '-r' flag to show the oldest checkin first instead of the newest, and getopt.getopt was used wrong.
* Scrit by Marc-Andre Lemburg to generate htmlentitydefs.py.Guido van Rossum1999-08-191-0/+65
|
* Mark Hammond writes:Guido van Rossum1999-07-301-1/+3
| | | | | | | | | | | | | | | | """ If the filename being complained about contains a space, enclose the file-name in quotes. The reason is simply that when I try and parse tabnanny's output, filenames with spaces make it very difficult to determine where the filename stops and the linenumber begins! """ Tim approves. I slightly changed the patch (use 'in' instead of string.find()) and arbitrarily bumped the __version__ variable up to 6.
* Use re instead of regex.Guido van Rossum1999-04-091-10/+11
| | | | | Don't rewrite the file in place. (Reported by Andy Dustman.)
* For reasons I dare not explain, this script should always executeGuido van Rossum1999-04-021-2/+1
| | | | main() when imported (in other words, it is not usable as a module).
* Tim Peters writes:Guido van Rossum1999-03-281-24/+53
| | | | | | | | I should have waited overnight <wink/sigh>. Nothing wrong with the one I sent, but I couldn't resist going on to add new -r1 / -r2 cmdline options for recreating the original files from ndiff's output. That's attached, if you're game! Us Windows guys don't usually have a sed sitting around <wink>.
* Tim Peters writes:Guido van Rossum1999-03-271-160/+88
| | | | | | | Attached is a cleaned-up version of ndiff (added useful module docstring, now echo'ed in case of cmd line mistake); added -q option to suppress initial file identification lines; + other minor cleanups, & a slightly faster match engine.
* During display, if EPIPE is raised, it's probably because a pager wasFred Drake1999-03-261-3/+8
| | | | killed. Discard the error in that case, but propogate it otherwise.
* Added a -q ('quiet') option to tabnanny, which causes only the names ofAndrew M. Kuchling1998-12-181-3/+7
| | | | offending files to be printed. Good for emacs `tabnanny.py *.py`
* Patch by Chris Herborth:Guido van Rossum1998-12-171-1/+7
| | | | | BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all.
* Detlef Lannert lannert@lannert.rz.uni-duesseldorf.de notices:Guido van Rossum1998-10-201-1/+4
| | | | | | | | | """ the NEWS file of Python 1.5.2a2 inspired me to look at Tools/scripts/untabify.py. I wonder why it accepts a -t argument but ignores it. The following patch tries to make it somewhat useful (i.e., to override the tabsize=8 setting). Is that agreeable? """
* New version that is much more compact and easier to maintain. (Sjoerd)Guido van Rossum1998-10-091-239/+124
|
* Fix multi-arg list.append() calls.Guido van Rossum1998-10-083-9/+9
|
* Added a whole bunch of descriptions.Guido van Rossum1998-10-071-0/+11
|
* Use the imp module to get the magic word.Guido van Rossum1998-10-071-6/+2
|
* Added #! lineGuido van Rossum1998-10-071-0/+1
|
* Print serious errors to stderr instead of stdout.Guido van Rossum1998-09-141-4/+11
|
* nannifiedGuido van Rossum1998-09-141-885/+885
|
* nannifiedGuido van Rossum1998-09-141-17/+17
|
* nannified.Guido van Rossum1998-09-141-8/+8
|
* Utility to replace CRLF with LF in argument files.Guido van Rossum1998-09-141-0/+19
|
* Utility to replace LF with CRLF in argument files.Guido van Rossum1998-09-141-0/+19
|
* Utility to untabify stubber results.Guido van Rossum1998-09-141-0/+50
|
* New tool: reverse grep (greps from the end). Uses a fairly efficientGuido van Rossum1998-08-121-0/+65
| | | | strategy to read from the end of the file.
* A script by Mark-Andre Lemburg to produce the PC/python_nt.def fileGuido van Rossum1998-08-101-0/+102
| | | | automatically.
* # The variable total is never used somehow. I think I had plans forGuido van Rossum1998-07-021-2/+2
| | | | # it but can't remember what. Get rid of a comparison that breaks.
* Fix by Sjoerd Mullender to support symbolic links and make a backup ofGuido van Rossum1998-06-291-56/+80
| | | | | | | | .mirrorinfo. Fix by me to call string.lstrip(filename) to cope with a bug in strop.strip() in Python 1.4. Additionally, I changed all print statements that print filenames etc. to put them in backquotes so that it will be more obvious when there's a funny character on one of them (such as a space...).
* Translated to use re instead of regex. Also replaced one use ofGuido van Rossum1998-06-191-33/+45
| | | | L.append(a,b,c,d) with the correct L.append((a,b,c,d)).
* From: "Tim Peters" <tim_one@msn.com>Guido van Rossum1998-06-091-3/+9
| | | | | | | | | | The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last line is both indented and lacks a newline: if 1: print 'oh fudge' # no newline here: The attached version repairs that.
* OK, here's a different way to implement the same thing -- this versionGuido van Rossum1998-05-121-6/+6
| | | | also supports filenames with multiple spaces in their name :-)
* Support filenames with spaces in their names (for non-Mac ftp servers).Guido van Rossum1998-05-121-2/+2
| | | | | | | | | | This patch must hold the world record for living in my inbox: From: John Ehresman <jehresma@dsg.harvard.edu> Date: Wed, 23 Aug 1995 16:07:11 -0400 He provided a fix for the version that comes with Python 1.3: ftpmirror.py revision 1.1... And it was still relevant!
* Add the specific sed statement to recover the second output file toGuido van Rossum1998-05-081-1/+6
| | | | the comments.