Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised

while running under -3.
This commit is contained in:
Brett Cannon 2008-08-02 03:15:20 +00:00
parent 2005050152
commit 50bb7e12ec
1 changed files with 3 additions and 1 deletions

View File

@ -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))