summaryrefslogtreecommitdiffstats
path: root/Lib/tabnanny.py
Commit message (Collapse)AuthorAgeFilesLines
* Add the NannyNag exception class and the process_tokens() function toGuido van Rossum2001-08-071-1/+1
| | | | | | | | | __all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
* Turns out Neil didn't intend for *all* of his gen-branch work to getTim Peters2001-06-291-9/+7
| | | | | | | | | | | | | | | | | | | | committed. tokenize.py: I like these changes, and have tested them extensively without even realizing it, so I just updated the docstring and the docs. tabnanny.py: Also liked this, but did a little code fiddling. I should really rewrite this to *exploit* generators, but that's near the bottom of my effort/benefit scale so doubt I'll get to it anytime soon (it would be most useful as a non-trivial example of ideal use of generators; but test_generators.py has already grown plenty of food-for-thought examples). inspect.py: I'm sure Ping intended for this to continue running even under 1.5.2, so I reverted this to the last pre-gen-branch version. The "bugfix" I checked in in-between was actually repairing a bug *introduced* by the conversion to generators, so it's OK that the reverted version doesn't reflect that checkin.
* Merging the gen-branch into the main line, at Guido's direction. Yay!Tim Peters2001-06-181-75/+9
| | | | | Bugfix candidate in inspect.py: it was referencing "self" outside of a method.
* Get rid of useless string import, as reported by Neal Norwitz's PyChecker.pyTim Peters2001-04-081-1/+0
| | | | on c.l.py.
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+2
| | | | giving it a slight facelift
* Whitespace normalization.Tim Peters2001-01-151-117/+116
|
* Added tabnanny.py, by Tim Peters, formerly from Tools/scripts, to theGuido van Rossum2000-02-231-0/+4
| | | | | | | | standard library. Added some comments: # XXX Note: this is now a standard library module. # XXX The API needs to undergo changes however; the current code is too # XXX script-like. This will be addressed later.
* 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.
* 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`
* Print serious errors to stderr instead of stdout.Guido van Rossum1998-09-141-4/+11
|
* 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.
* typo in error message (fname vs. file).Guido van Rossum1998-04-281-1/+1
| | | | (Jack)
* Tim's version 4, with my modsGuido van Rossum1998-04-101-14/+6
|
* Add usage message when no arguments.Guido van Rossum1998-04-061-0/+4
|
* Tim's latest version (supports old and new tokenize modules)Guido van Rossum1998-04-061-77/+128
|
* Tim Peters' program for checking whether a program's indentation isGuido van Rossum1998-03-311-0/+302
sensitive to tab size. Uses a different strategy than tabpolice.py, but has compatible usage.