Skip to content

Commit 69a9579

Browse files
author
whitequark
committedJun 28, 2015
source.Range.__str__: include line number in range end, too.
1 parent 19f24b6 commit 69a9579

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎pythonparser/source.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ def __str__(self):
152152
"""
153153
Returns a Clang-style string representation of the beginning of this range.
154154
"""
155-
return "%s:%d:%d-%d" % (self.source_buffer.name,
156-
self.line(), self.column() + 1, self.end().column() + 1)
155+
return "%s:%d:%d-%d:%d" % (self.source_buffer.name,
156+
self.line(), self.column() + 1,
157+
self.end().line(), self.end().column() + 1)
157158

158159
def __eq__(self, other):
159160
"""

0 commit comments

Comments
 (0)
Please sign in to comment.