diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-04 23:22:44 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-04 23:22:44 (GMT) |
| commit | b9d4963a989accce30234b7b74bce874c0142209 (patch) | |
| tree | 63fa25095a756b9def7c84cf7eb88d68c2412e29 /Lib/lib2to3/pgen2/tokenize.py | |
| parent | b9c3ed4f82d3551c9906da55ddb8059ac3b5ce94 (diff) | |
| download | cpython-b9d4963a989accce30234b7b74bce874c0142209.zip cpython-b9d4963a989accce30234b7b74bce874c0142209.tar.gz cpython-b9d4963a989accce30234b7b74bce874c0142209.tar.bz2 | |
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/lib2to3/pgen2/tokenize.py')
| -rw-r--r-- | Lib/lib2to3/pgen2/tokenize.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib2to3/pgen2/tokenize.py b/Lib/lib2to3/pgen2/tokenize.py index 163c561..e0f45f9 100644 --- a/Lib/lib2to3/pgen2/tokenize.py +++ b/Lib/lib2to3/pgen2/tokenize.py @@ -144,7 +144,9 @@ class TokenError(Exception): pass class StopTokenizing(Exception): pass -def printtoken(type, token, (srow, scol), (erow, ecol), line): # for testing +def printtoken(type, token, start, end, line): # for testing + (srow, scol) = start + (erow, ecol) = end print "%d,%d-%d,%d:\t%s\t%s" % \ (srow, scol, erow, ecol, tok_name[type], repr(token)) |
