From: Brett Cannon Date: Sat, 2 Aug 2008 03:15:20 +0000 (+0000) Subject: Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised X-Git-Tag: v2.6b3~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685;p=python Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised while running under -3. --- diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 0f68b4034b..ff57b12702 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))