summaryrefslogtreecommitdiff
path: root/paste/util
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:22:50 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:22:50 +0100
commit4b3635c01d650058227767d2253e32e902cbbed1 (patch)
tree7efc29e129f01630618ea4bcd6b731b33c89ae10 /paste/util
parentfbd07d8a7cf88daf5d821601578d2f7bc1c92928 (diff)
downloadpaste-4b3635c01d650058227767d2253e32e902cbbed1.tar.gz
Python 3: don't use tuples in function prototype
Unpack explicitly in the body of the function
Diffstat (limited to 'paste/util')
-rw-r--r--paste/util/PySourceColor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/util/PySourceColor.py b/paste/util/PySourceColor.py
index 64c0f56..9de5b84 100644
--- a/paste/util/PySourceColor.py
+++ b/paste/util/PySourceColor.py
@@ -1324,9 +1324,11 @@ class Parser(object):
else:
self._doSnippetEnd()
- def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):
+ def __call__(self, toktype, toktext, srow_col, erow_col, line):
"""Token handler. Order is important do not rearrange."""
self.line = line
+ srow, scol = srow_col
+ erow, ecol = erow_col
# Calculate new positions
oldpos = self.pos
newpos = self.lines[srow] + scol