Add SyntaxError.get_message

This commit is contained in:
Dave Halter
2020-06-16 08:51:54 +02:00
parent 61ad05d511
commit be184241fd
3 changed files with 12 additions and 7 deletions

View File

@@ -35,6 +35,9 @@ class SyntaxError(object):
"""The column where the error ends (starting with 0)."""
return self._parso_error.end_pos[1]
def get_message(self):
return self._parso_error.message
def __repr__(self):
return '<%s from=%s to=%s>' % (
self.__class__.__name__,