diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:15:20 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:15:20 (GMT) |
commit | 50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685 (patch) | |
tree | c113f887c41c56aba70389b0a5cbfa9b4affffaa /Lib/tokenize.py | |
parent | 200505015252c5ab029b56a8b69a065d2e1c8adb (diff) | |
download | cpython-50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685.zip cpython-50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685.tar.gz cpython-50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685.tar.bz2 |
Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
while running under -3.
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r-- | Lib/tokenize.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 0f68b40..ff57b12 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -146,7 +146,9 @@ class TokenError(Exception): pass class StopTokenizing(Exception): pass -def printtoken(type, token, (srow, scol), (erow, ecol), line): # for testing +def printtoken(type, token, srow_scol, erow_ecol, line): # for testing + srow, scol = srow_scol + erow, ecol = erow_ecol print "%d,%d-%d,%d:\t%s\t%s" % \ (srow, scol, erow, ecol, tok_name[type], repr(token)) |