Commit 7c2ed18f authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[py3k] Tuple unpacking is now forbidden in function arguments

Related to #268148.
parent 4bca0f6ba081
......@@ -70,8 +70,9 @@ class Parser:
msg, self.raw[self.lines[line]:]))
self.out.write('\n</pre>\n')
def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):
def __call__(self, toktype, toktext, sparams, _, line):
"""Token handler"""
srow, scol = sparams
# calculate new positions
oldpos = self.pos
newpos = self.lines[srow] + scol
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment