summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/checkappend.py
Commit message (Collapse)AuthorAgeFilesLines
* - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has beenTrent Nelson2008-03-181-1/+3
| | | | | | | | | | renamed tokenize and now works with bytes rather than strings. A new detect_encoding function has been added for determining source file encoding according to PEP-0263. Token sequences returned by tokenize always start with an ENCODING token which specifies the encoding used to decode the file. This token is used to encode the output of untokenize back to bytes. Credit goes to Michael "I'm-going-to-name-my-first-child-unittest" Foord from Resolver Systems for this work.
* Convert print statements to function calls in Tools/.Collin Winter2007-08-031-5/+5
|
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-3/+3
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-6/+6
| | | | From SF patch #852334.
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-2/+1
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* 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