mirror of https://github.com/python/cpython
Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
while running under -3.
This commit is contained in:
parent
2005050152
commit
50bb7e12ec
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue