start/end_pos refactored in parsing

This commit is contained in:
David Halter
2012-12-13 19:57:44 +01:00
parent a51a1f7aa0
commit b0386d9c74
2 changed files with 5 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ class NoErrorTokenizer(object):
self.readline))
self.current = self.next()
c = list(self.current)
c[2] += self.line_offset, 0
c[2] = self.line_offset + c[2][0], c[2][1]
return c