diff --git a/src/parse.py b/src/parse.py index 24db521..b04a3fd 100644 --- a/src/parse.py +++ b/src/parse.py @@ -17,7 +17,7 @@ self.syntax = syntax self.parent = parent - def __str__(self): + def __repr__(self): return ( "ParseContext(task %s, syntax %s, parent %s)" # pragma: no mutate % ( # pragma: no mutate @@ -55,7 +55,7 @@ self.expected = expected self.context = context - def __str__(self): + def __repr__(self): return ( "ParseErrorException(error %s, syntax %s, expected %s, context %s)" # pragma: no mutate % ( # pragma: no mutate