Skip to content

Commit

Permalink
source.Range.__str__: include line number in range end, too.
Browse files Browse the repository at this point in the history
whitequark committed Jun 28, 2015
1 parent 19f24b6 commit 69a9579
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pythonparser/source.py
Original file line number Diff line number Diff line change
@@ -152,8 +152,9 @@ def __str__(self):
"""
Returns a Clang-style string representation of the beginning of this range.
"""
return "%s:%d:%d-%d" % (self.source_buffer.name,
self.line(), self.column() + 1, self.end().column() + 1)
return "%s:%d:%d-%d:%d" % (self.source_buffer.name,
self.line(), self.column() + 1,
self.end().line(), self.end().column() + 1)

def __eq__(self, other):
"""

0 comments on commit 69a9579

Please sign in to comment.